Re: Single Liked List Problem at Java
- From: rossum <rossum48@xxxxxxxxxxxx>
- Date: Mon, 16 Jun 2008 18:31:35 +0100
On Mon, 16 Jun 2008 09:31:50 -0700 (PDT), bbbb <vmavrou@xxxxxxxxx>
wrote:
my problem is how to get the k position and not only the first or lastDo you have a function that moves from one list item to the next list
for insertion or deletion.
item? It is often called "next()". You can find the k'th item (if it
exists) by using next() from the start of the list.
Have a look at the List and List<T> interfaces in the Java
documentation, there are lots of ideas there for what you need in an
implementation of a list.
rossum
.
- References:
- Single Liked List Problem at Java
- From: bbbb
- Re: Single Liked List Problem at Java
- From: bbbb
- Re: Single Liked List Problem at Java
- From: rossum
- Single Liked List Problem at Java
- Prev by Date: Re: Single Liked List Problem at Java
- Next by Date: Re: open source code development
- Previous by thread: Re: Single Liked List Problem at Java
- Next by thread: Re: Single Liked List Problem at Java
- Index(es):
Relevant Pages
|