Category: Java

Vector in java

Vector in java

In the previous post, we have seen how to replace element with a new value in LinkedList. In this post, we will see about vector in java. Vector has the following features. It implements...

Iterate LinkedList in reverse order

Iterate LinkedList in reverse order

In the previous post, we have learnt about LinkedList ListIterator. In this post, we will learn how to iterate LinkedList in reverse order. There is a method descendingIterator() to iterate over a list in reverse...

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...

linkedist iterator

LinkedList Iterator in java

In the previous post, we have seen how to get the sublist from LinkedList. In this post, we will learn about LinkedList Iterator in java. After creating a LinkedList Iterator, we call method Iterator()...

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...