Luke Gotto

Greenhorn
+ Follow
since Apr 04, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Luke Gotto

When i run this it removes all of the elemets of the list except the last one... Any ideas why it is not geting to the last node?

public E remove() // delete link with given key
{
E tmp;
tmp = null;
cursor = first;
previous = first;


if (cursor == null)
return null;
else
tmp = first.item;
previous = cursor;
first = cursor.next;
length = length -1;

return tmp;


}
15 years ago

[ April 04, 2008: Message edited by: Fred Rosenberger ]
15 years ago