Category Archives

SortedMap in Java

SortedMap is an interface in the collection framework. This interface extends the Map interface and provides a total ordering...

SortedMap in Java

SortedMap is an interface in the collection framework. This interface extends the Map interface and provides a total ordering...

HashMap in Java with Examples

HashMap<K, V> is a part of Java’s collection since Java 1.2. This class is found in java.util package. It...

HashMap in Java with Examples

HashMap<K, V> is a part of Java’s collection since Java 1.2. This class is found in java.util package. It...

EnumMap class in Java

EnumMap is a specialized implementation of the Map interface for enumeration types. It extends AbstractMap and implements the Map...

EnumMap class in Java

EnumMap is a specialized implementation of the Map interface for enumeration types. It extends AbstractMap and implements the Map...

Disjoint Set Data Structures

Consider a situation with a number of persons and following tasks to be performed on them. Add a new...

Disjoint Set Data Structures

Consider a situation with a number of persons and following tasks to be performed on them. Add a new...

Internal working of Set/HashSet in Java

As we know that a set is a well-defined collection of distinct objects. Each member of a set is...

Internal working of Set/HashSet in Java

As we know that a set is a well-defined collection of distinct objects. Each member of a set is...

LinkedHashSet in Java with Examples

The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration...

LinkedHashSet in Java with Examples

The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration...

CopyOnWriteArraySet in java

CopyOnWriteArraySet is a member of the Java Collections Framework. It is a Set that uses an internal CopyOnWriteArrayList for...

CopyOnWriteArraySet in java

CopyOnWriteArraySet is a member of the Java Collections Framework. It is a Set that uses an internal CopyOnWriteArrayList for...

ConcurrentSkipListSet in Java with Examples

The ConcurrentSkipListSet class in Java is a part of the Java Collection Framework and implements the Collection interface and...

ConcurrentSkipListSet in Java with Examples

The ConcurrentSkipListSet class in Java is a part of the Java Collection Framework and implements the Collection interface and...

TreeSet in Java

TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for...

TreeSet in Java

TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for...

HashSet in Java

The HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. No...

HashSet in Java

The HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. No...