
Java 8 – How to Sort a Map entries by its Value in 6 ways ?
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 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 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 convert ArrayList to Arrays in different ways Conversion of ArrayList to Arrays[] : Using toArrays() method Using traditional Read More
In this article, we will discuss how to sort contents of LinkedHashSet Key points about LinkedList: LinkedHashSet maintains insertion-order It uses doubly-linked list and hash table to store element/objects Different ways to Read More
In this article, we will discuss different types of for-loop evolved over years in various Java versions Starting Java 1.1 version, for-loop was always there Read More
In this article, we will discuss and understand why we need to override toString() method for displaying ArrayList contents Problem statement for ArrayList : Assume Read More
In this article, we will discuss how to convert StringTokenizer tokens into ArrayList Few things to note: StringTokenizer is deprecated now, but however it is Read More
In this article, we will discuss how to sort HashSet in 2 ways. Already, in one of the earlier article we discussed about HashSet sorting 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 convert Arrays into List in Java 8 using Streams class Conversion of Arrays to List : Until Read More
In this article, we will discuss various ways to remove duplicate elements from Arrays in Java i.e.; Ways to remove duplicate elements from Arrays: Using Read More
In this article, we will discuss how to remove duplicate elements from ArrayList in Java Already, we have discussed in one of the earlier article Read More
In this article, we will discuss how to sort contents of ArrayList using sort() method of List in Java 8 Until Java 1.7 version: To Read More
In this article, we will discuss difference between Arrays and ArrayList in detail i.e.; Arrays v/s ArrayList 1. Difference will be based on below parameters, Size 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 one of the previous articles, we have discussed how to sort list of objects on the basis of single field/attribute using Comparable and Comparator interfaces Read More