GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes Linked List operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Linked List operation" Watch "Linked List operation" New topic
Author

Linked List operation

Timothy Leong
Ranch Hand

Joined: May 25, 2005
Posts: 55
hi guys,
what are the operations of a linked list can performed?

1) Add new node
2) Delete node
3) Sorting
4) Search


any more tt requires the manipulation of linked list?
Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
Check out

http://java.sun.com/j2se/1.4.2/docs/api/java/util/LinkedList.html

You can add whole collections, remove parts or get sublists of your list.

addAll
removeRange
subList

Hope that helps
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
If you need to implement your own linked list class for a homework assignment, you should read your textbook. It should contain a thorough list of the basic operations you can perform on a linked list. If it doesn't, you should return it and ask your professor to use a better book.

Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Linked List operation