Java : How to Remove elements from HashMap while Iterating
In this article we will discuss different ways to remove elements from HashMap while Iterating. (more…)
Initializing a HashSet from an Array or a Collection
In this Article we will discuss how to initialize a HashSet using a Array or a Collection. (more…)
How to Merge two HashSets in Java
In this article we will discuss how to merge two HashSets. (more…)
How to Search for an element in HashSet in Java
In this article we will discuss how to search for an element in HashSet. (more…)
How to create and add elements in a HashSet in Java
+In this article we will discuss how to create a HashSet of integers and add elements in it. (more…)
How to iterate LinkedList in reverse or backward direction
In this article we will discuss how to iterate over a LinkedList in reverse order. Method 1 : Using Descending Iterator Iterator<E> descendingIterator() Descending Iterator returns the Iterator that points to…
How to iterate over a LinkedList in Java
In this article we will discuss how to iterate over a LinkedList Collection in Java and access objects. (more…)
Java LinkedList Tutorial
LinkedList is a kind of List used to store elements. Its an ordered collection elements added at a position in LinkedList will remain in that position till modified by user.…
How to add elements at a particular index in LinkedList
In this article we will discuss how to add elements at a particular index or position in a LinkedList in Java. (more…)