Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2467

For loop on Word List

Newsgroups comp.lang.java.help
Date 2013-01-23 08:01 -0800
Message-ID <43165a8a-3a3b-4869-aa7e-3c4e4bbc5898@googlegroups.com> (permalink)
Subject For loop on Word List
From subhabangalore@gmail.com

Show all headers | View raw


Dear Group,

I am trying to learn Java. 

If I have a string like,
"Moscow is the capital of Russia",
I like to see it as,

["Moscow","is","the","capital","of","Russia"]

"Moscow",0
"is",1
"the",2
"capital",3
"of",4
"Russia",5

the string into a bag of words, and each word and its corresponding index.

If any one can help me.

Regards,
Subhabrata. 

Back to comp.lang.java.help | Previous | NextNext in thread | Find similar | Unroll thread


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