File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes for each Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "for each" Watch "for each" New topic
Author

for each

vuthlarhi donald
Ranch Hand

Joined: Jul 31, 2006
Posts: 76
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16811
    
  19



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?

Henry


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

Joined: Jan 30, 2000
Posts: 18670
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: for each
 
Similar Threads
Hash Map to do Inverted Index?
TreeMap question#1
Tree Maps with 3 variables?
Anyone know How to solve this basic problem?
Regex and Generics Notes/Questions