Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP?! set up an iterator & put entries Collection into display List

 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I have to set up an iterator and put entries Collection into display List for my midAction button I am not sure how to do this.. I know it involves "Iterator count" that's all I can get. Any suggestions?
here is my code so far:

Thanks
Rob
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this all you need?

[ August 14, 2003: Message edited by: Ernest Friedman-Hill ]
 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi -
thanks for the code
it is giving me an illegal start of expression
in the {string line = string it.next();}
and do I actually put in "String" and "line"?
Thanks
rob
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There was an automatically-inserted smiley in place of a semicolon followed by a close-paren in my original post; I edited my post so the smiley doesn't show up. The code should be exactly correct as shown. "line" is the name of the String variable I've chosen to hold each element of "entries" -- you're free to call it whatever you want.
Note that capitalization (it's spelled "String") matters, and every parenthesis, etc, is significant.
[ August 14, 2003: Message edited by: Ernest Friedman-Hill ]
 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahhh
Thank you again for your reply!!
I really appreciate it!
Rob
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic