Re: Vector Help
From: Row (soul_fly_at_punkass.com)
Date: 04/22/04
- Next message: Roedy Green: "Re: Vector Help"
- Previous message: Darryl L. Pierce: "Re: How can I discover whether my application was activated by incoming SMS or manually?"
- In reply to: SPG: "Re: Vector Help"
- Next in thread: SPG: "Re: Vector Help"
- Reply: SPG: "Re: Vector Help"
- Reply: Row: "Re: Vector Help!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Apr 2004 20:43:44 -0700
Thanks for the reply steve,
Unfortunatly i really have no idea about linked lists.
I would like the keep the Iterator, but again i have no idea how to
implement an iterator as a class level variable?
I have tried putint the new Iterator at the top of my main class.
but when i run the program it throws an exception relating to the
Iterator :(
Could you please describe how you would put the list Iterator in a
class method
So a new Iterator isn't created every time i press next / or previous.
like i said im new to this, so I would be so greatfull if you could
show me.!!!!!
thanks once again Steve and everyone else!
Rowan
"SPG" <steve.nospoo.goodsell@nopoo.blueyonder.co.uk> wrote in message news:<LFvhc.27$T87.493699@news-text.cableinet.net>...
> You could use a LinkedList, that makes traversing back and forth simple.
> Your code always gets a new iterator on each click, so you will always show
> the first element in the list.
>
> If you want to keep your code using the listIterator, then I suggest you use
> a class level variable to store an instance of the iterator in.
>
> Good luck,
>
> Steve
>
- Next message: Roedy Green: "Re: Vector Help"
- Previous message: Darryl L. Pierce: "Re: How can I discover whether my application was activated by incoming SMS or manually?"
- In reply to: SPG: "Re: Vector Help"
- Next in thread: SPG: "Re: Vector Help"
- Reply: SPG: "Re: Vector Help"
- Reply: Row: "Re: Vector Help!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|