jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes for each Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "for each" Watch "for each" New topic

for each

vuthlarhi donald
Ranch Hand

Joined: Jul 31, 2006
Posts: 76
Henry Wong

Joined: Sep 28, 2004
Posts: 20514

There is nothing to resolve. The for (each) loop is for iterators or arrays, there is no option to extract words from lines.

On the other hand, you are already using the scanner. Can't you use that to help separate the words?


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Please, try to form a sentence in English. Don't bury your question in a comment.

"I'm not back." - Bill Harding, Twister
I agree. Here's the link: http://aspose.com/file-tools
subject: for each
It's not a secret anymore!