
Java – How to make a HashMap read-only or unmodifiable ?
In this article, we will discuss how to convert a modifiable HashMap entries into an unmodifiable HashMap entries using Collections.unmodifiableMap(); method 1. Convert HashMap to Read More
In this article, we will discuss how to convert a modifiable HashMap entries into an unmodifiable HashMap entries using Collections.unmodifiableMap(); method 1. Convert HashMap to Read More
In this article, we will discuss how to convert Stream into a HashMap in Java 1.8 version using Stream API Stream to HashMap : Using Read More
In this article, we will learn different ways to iterate through HashMap Different ways to iterate through Map : Using Map.forEach() method Using Map.keySet() and Read More
In this article, we will discuss different ways to sort a Map entries (key-value pairs) by its Value Before proceeding with this sorting examples understand Read More
In this article, we will discuss different ways to sort a Map entries (key-value pairs) by its Key Before proceeding with this sorting examples understand Read More
In this article, we will discuss how to sort HashMap entries by its Values in ascending & descending order using Java 8 Stream‘s sorted() method Read More
In this article, we will discuss how to sort HashMap entries by its Keys in ascending & descending order using Java 8 Before proceeding with Read More
In this article, we will discuss Stream’s collect() method in details with examples 1. Stream collect() method: This Stream method is a terminal operation which Read More
In this article, we will discuss how to filter a Map by its Key & Value from a Stream using filter() method 1. Filter a Read More
In this article, we will discuss and understand with a program to check whether HashMap is empty or not ? In earlier article, we have Read More
In the previous article, we have discussed on how to remove an entry or entries from HashMap by comparing values using Java 8 APIs Here, Read More
In this article, we will discuss how to remove an entry or entries from HashMap using Java 8 APIs Before proceeding further, it is recommended Read More
In this article, we will discuss various possibilities when ConcurrentModificationException is thrown and its resolution with respect to HashMap Often, this term is quite confusing. So, we Read More
In this article, we will discuss how to convert List into Map in Java 8 Already, in the last article we have discussed how to Read More
In this article, we will discuss how to convert List into Map in Java 1. List v/s Map: Before starting with List to Map conversion, Read More
In this article, we will discuss how to convert Map into List in Java 1.8 version Conversion of Map to List in Java 8 : Read More
In this article, we will discuss how to convert Map into List in Java As Map contains key-value pairs which is called as Map entries, Read More
In this article, we will discuss different ways to iterate through List of HashMap. Already, in earlier articles, we have discussed following topics Iterating over Read More
In previous articles, we have discussed various ways to iterate through Map and in this article we will learn different ways to iterate through Hashtable 1. Hashtable : Read More
In this article, we will discuss difference between SynchronizedMap and ConcurrentHashMap classes in detail i.e.; ConcurrentHashMap v/s SynchronizedMap Lets us move on and discuss key differences Read More