This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes HELP?! set up an iterator & put entries Collection into display List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HELP?! set up an iterator & put entries Collection into display List" Watch "HELP?! set up an iterator & put entries Collection into display List" New topic
Author

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

Rob Michaelson
Ranch Hand

Joined: Jul 15, 2003
Posts: 36
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

Joined: Jul 08, 2003
Posts: 24183
    
  34

Is this all you need?

[ August 14, 2003: Message edited by: Ernest Friedman-Hill ]

[Jess in Action][AskingGoodQuestions]
Rob Michaelson
Ranch Hand

Joined: Jul 15, 2003
Posts: 36
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

Joined: Jul 08, 2003
Posts: 24183
    
  34

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

Joined: Jul 15, 2003
Posts: 36
Ahhh
Thank you again for your reply!!
I really appreciate it!
Rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HELP?! set up an iterator & put entries Collection into display List
 
Similar Threads
HELP?! something weird is going on w/rightAction click
Help with ALabel - or instance variable which will hold an array
Help! I need help w/ALabel(s) to display messages
HELP?! making an application w/static void main(String []args)
Question about a simple GUI application