Linked List

Linked List – descendingIterator() method in Java

The descendingIterator() method has been present since Java 1.6 and is used to iterate the linked list in the reverse order. In this post, we will discuss the descendingIterator() method of the Linked List class. Method declaration – public Iterator descendingIterator() What does it do? It helps in iterating the linked list in reverse order. …

Linked List – descendingIterator() method in Java Read More »

Linked List- contains() and containsAll() methods in Java

contains() method checks whether the specified element is present in the list or not, and the containsAll() method checks whether all elements of the specified collection are present in the list. This post will discuss contains and containsAll methods implemented in the Linked List class. public boolean contains(Object o) What does it do? It will …

Linked List- contains() and containsAll() methods in Java Read More »