|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLinkedList
public class LinkedList
Constructor Summary | |
---|---|
LinkedList()
Creates an empty linked list. |
Method Summary | |
---|---|
boolean |
add(int index,
Node newNode)
Adds a node to the given index of the linked list. |
boolean |
delete(int index)
Deletes a node from the given index of the linked list. |
Node |
getNode(int index)
Returns the node at the given index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkedList()
Method Detail |
---|
public boolean add(int index, Node newNode)
index
- Position at which to add the new node: 0 = headnewNode
- Node to add to the linked listpublic boolean delete(int index)
public Node getNode(int index)
index
- Index of node to return
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |