Java Collections
-
Core Java
Case Insensitive String Handling in Java Lists
Checking if a List contains a string element while ignoring cases can be a common requirement, especially when dealing with…
Read More » -
Core Java
Generate a List of Objects from a Different Type Using Java 8
In Java programming, how to generate a list of objects from a different type has become much simpler thanks to…
Read More » -
Core Java
Java Set Draw Example
In Java, when dealing with collections, it’s often useful to retrieve a random element – draw – from a Set.…
Read More » -
Core Java
Get ArrayLists of Values and Keys from a HashMap in Java
In Java, the HashMap is a commonly used data structure that stores keys-value pairs. Sometimes, we may need to extract…
Read More » -
Core Java
Multiple Values for a Single Key in HashMap
A HashMap is a data structure in Java that allows you to store key-value pairs. In a standard HashMap, each…
Read More » -
Core Java
Java Iterator vs. ListIterator
In Java, an Iterator is an interface that is part of the Java Collections Framework, which provides a way to…
Read More » -
Core Java
Java 9 Immutable Collections Example
Hello, in this tutorial we will see another JDK 9 feature i.e. creating immutable collections in Java. Java 9 brings…
Read More » -
TreeMap
Java Sorted Map Example
In this example we shall show you how to make use of Java Sorted Map. A SortedMap is a Map that sort its entries…
Read More » -
Set
Java Sorted Set Example
In this example we shall show you how to make use of Java Sorted Set. Java Sorted Set is a Set…
Read More »