<<< A constructor for the LinkedList class     Index     Code that creates a linked list of type String >>>

30. Common methods of the LinkedList class


  • add(object)

  • add(index, object)

  • addFirst(object)

  • addLast(object)

  • clear()

  • contains(object)

  • get(index)

  • getFirst()

  • getLast()

  • indexOf(object)

  • peek()

  • offer(object)

  • poll()

  • remove()

  • remove(index)

  • remove(object)

  • removeFirst()

  • removeLast()

  • set(index, object)

  • size()

  • toArray()


<<< A constructor for the LinkedList class     Index     Code that creates a linked list of type String >>>