Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

for each

 
vuthlarhi donald
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Henry Wong
author
Marshal
Pie
Posts: 21503
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please, try to form a sentence in English. Don't bury your question in a comment.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic