This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot find list interator  RSS feed

 
Stuart Rogers
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,

I'd like to move the ListIterator as an inner class within the TradeTreeNodeList class. But the compiler squawks about not being able to find li_l . The code executes find when the printAll method and the call to the printAll method, as it displays the correct count of list elements.



What am I doing wrong?

TIA,

Still-learning Stuart
[ October 31, 2008: Message edited by: Bear Bibeault ]
 
Campbell Ritchie
Marshal
Posts: 55698
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stuart Rogers:
What am I doing wrong?


It's a spelling mistake.
 
Rob Spoor
Sheriff
Posts: 21090
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And quite a hard one to see at that. Check the declaration of your List.
 
Stuart Rogers
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arg! That'll teach me to code at 0200. Sneaky bastard fonts...

Follow-on question -- if I now morpth code to run as a servlet, what changes do I need to make to the printAll method? Meaning from
System.out.println....
to
???

TIA,

Still-learning Stuart
 
Campbell Ritchie
Marshal
Posts: 55698
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know, but I think that latter question would sit better on the Servlets forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That greatly depends upon where you want the output to appear.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!