Tagged: Collections Framework

LinkedList ListIterator in java

LinkedList ListIterator in java

In the previous post, we have learnt about Iterator in LinkedList. In this post, we will study about LinkedList ListIterator in java. In LinkedList , ListIterator allows to iterator over in forward and backward directions...

Get subList from LinkedList

Get subList from LinkedList

In the previous post, we have seen how to search element in LinkedList. In this post, we will learn how to get sublist from LinkedList. There is a method as sublist() which takes start...

Search Element in the LinkedList

Search Element in the LinkedList

In the previous post, we have seen how to remove all elements from the List. In this post, we will see how to search Element in the LinkedList. We can use the following methods...

Remove all elements from LinkedList

Remove all elements from LinkedList

In the previous post, we have seen how to remove First and Last element from the LinkedList. In this post, we will see how to remove all elements from the linkedList. We use the...

Add Element at a specified index

Add Element at a specified index

In the previous post, we have seen how to add an element to a LinkedList.In this post, we will see how to add element at a specified index. We will use method add(int index, Objects...

Adding an Element to a LinkedList

Adding an Element to a LinkedList

In the previous post, we have seen LinkedList in java.In this post, we will learn how to add element to a linkedList. We use the method add() to add the elements to the LinkedList. It...

LinkedList in java

LinkedList class in Java

In the previous post, we have learnt about the ArrayList in java. In this post, we will see about LinkedList class in java. LinkedList has the following features. LinkedList Class uses a doubly linked...