How do singly link lists work ..specifically using java?
and how to delete, insert nodes.. any1 have cod e snippets they can add? to help explain..and how do you delete/add nodes? i noe its reconnect the links to the nxt node in order to bypass it but whats the code?
Public Comments
- A singly linked list contains an inner class that defines a node. The node itself consists of the data you want to store in the list and a pointer to the next node in the list. The list object maintains a pointer to the start, or head, of the list. Typically you then iterate through the node pointers until you reach a value of null. Cheers!
Powered by Yahoo! Answers