• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with linked list  RSS feed

 
Suna Dev
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i want to remove all red items and after that add to "abcred" using one by one.
so i read the linkedlist tutorial. but no idea. please help me. how to do that?
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suna Dev wrote:i want to remove all red items and after that add to "abcred" using one by one.
so i read the linkedlist tutorial. but no idea.

Obviously not closely enough.

Hint: What does the remove() method return?

Winston

PS: You don't need to supply an index for each add - at least, not for your example.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!