Generic Singly Linked List in Java(With Test class) : Fully commented code.

profileEduSol
 (Not rated)
 (Not rated)
Chat

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

    blurred-text
    • attachment
      singlylinkedlist.zip