Generic Singly Linked List in Java(With Test class) : Fully commented code.
EduSol (Not rated)
(Not rated)
This program implements a Generic Singly Linked List in Java.
It contains:
Class definition and following methods:
- add(item)
- addFirst(item)
- addLast(item)
- add(index, item)
- remove(item)
- remove(index)
- removeFirst()
- removeLast()
- removeAll()
- peekFirst()
- peekLast()
- peek(index)
- toArray()
- contains(item)
- size()
- isEmpty()
- reverse()
It also contain custom exception classes.
- 7 years ago
Generic Singly Linked List in Java(With Test class) : Fully commented code.
NOT RATED
Purchase the answer to view it
- singlylinkedlist.zip