• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Iterator and next  RSS feed

 
Sami Devine
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried to use next and iterator and getting error.





 
Igor Mechnikov
Ranch Hand
Posts: 100
Chrome Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what happens when you use iterator? edit: also, Iterator works with collections, not arrays, as Henry pointed out.
Sami Devine wrote:Tried to use next and iterator and getting error.





 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The String array class doesn't have an iterate() method. From where did you read that it does?

Henry
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!