
Java 8 – Find First and Last entries in a Map or HashMap ?
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 get First and Last entries from a Map or HashMap using Java 8 Streams API Find First Read More
In this article, we will learn how to convert HashMap entries (key-value pairs) into ArrayList As Map contains Key-Value pairs, so we can extract keys 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 how to sort a TreeMap entries (or key-value pairs) in descending-order by its Key in Java 8 using Stream‘s Read More
In this article, we will discuss how to sort TreeMap entries by its Keys in descending order 1. Collections.reverseOrder() Returns a comparator that imposes the 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 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 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 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 how to sort Hashtable contents We can sort Hashtable in both ascending and descending order, by passing Hashtable contents Read More
In this article, we will discuss how to sort HashMap by its Keys and Values using stream in Java 8 Prior to Java 8 release, Read More
In this article, we will discuss how to sort HashMap by its Keys and Values 1. Sorting HashMap by its Keys : We can sort Read More
In this article, we will discuss how to convert unordered HashMap into Sorted TreeMap We can sort HashMap in both ascending and descending order, by Read More
In this article, we will discuss how to iterate through contents of LinkedHashMap in reverse-order 1. Key points about LinkedHashMap: LinkedHashMap maintains insertion-order as it Read More