Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2470
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: For loop on Word List |
| Date | 2013-01-23 17:33 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <kdq32l$4gt$1@dont-email.me> (permalink) |
| References | <43165a8a-3a3b-4869-aa7e-3c4e4bbc5898@googlegroups.com> <e7e6d308-c7aa-4fc6-a92e-0d6dff7d2884@googlegroups.com> |
On 1/23/2013 9:26 AM, subhabangalore@gmail.com wrote:
> Thank you for the help. I worked out the following solution.
> It seems working.
>
> public class For_loop {
> public static void main(String args[]) {
> String mystring="Subhabrata Banerjee works in India";
> String[]word=mystring.split(" ");
System.out.println( Arrays.toString( word ) );
> }
> }
Not exactly the same thing, but the point is that there are built-in
methods to do most common tasks in Java. In general your code is a lot
simpler if you use them.
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
For loop on Word List subhabangalore@gmail.com - 2013-01-23 08:01 -0800
Re: For loop on Word List Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-01-23 11:30 -0500
Re: For loop on Word List subhabangalore@gmail.com - 2013-01-23 09:26 -0800
Re: For loop on Word List markspace <markspace@nospam.nospam> - 2013-01-23 17:33 -0800
Re: For loop on Word List Roedy Green <see_website@mindprod.com.invalid> - 2013-01-23 19:40 -0800
csiph-web