
Java 8 – How to get Keys from Value in HashMap using Stream ?
In this article, we will discuss how to get Keys from Value in Map or Map implemented classes like HashMap, LinkedHashMap or TreeMap using Java Read More
In this article, we will discuss how to get Keys from Value in Map or Map implemented classes like HashMap, LinkedHashMap or TreeMap using Java Read More
In this article, we will discuss how to get Keys from Value in Map or Map implemented classes like HashMap, LinkedHashMap or TreeMap Before diving Read More
In this articles, we will discuss how to get all Zones and its corresponding Offset information using ZoneId and ZoneOffset Display all Zones and its Read More
In this article, we will discuss how to get First and Last entries from a Map or HashMap using Java 8 Streams API Find First Read More
In this article, we will discuss how to store/put multiple values for single key in HashMap Sometimes, we might require to store multiple values for 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