
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 article, we will discuss with an example for joining or concatenating or merging two or more lists into single list using Java 1.8 Read More
In this article, we will discuss how to sort String List by its length in Ascending-order and Descending-order in Java 1.8 version Sorting String List Read More
In this article, we will discuss how to sort String List by its length in Ascending-order and Descending-order Sorting String List by its length: Using Read More
In this article, we will discuss how to convert a modifiable Collection into an unmodifiable Collection using Collections.unmodifiableCollection(); method 1. Collection implemented classes: Classes that implement directly or via Collection are, ArrayList LinkedList Read More
In this article, we will discuss how to find smallest number in an Arrays and List 1. Finding Smallest number in an Arrays We will Read More
In this article, we will discuss how to find largest number in an Arrays and List 1. Finding Largest number in an Arrays We will Read More
In this article, we will discuss how to merge or concatenate 2 Arrays of same type. In one of the previous article, we already discussed 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 a modifiable HashSet into an unmodifiable HashSet using Collections.unmodifiableSet(); method 1. Convert HashSet to Read-only: HashSet Read More
In this article, we will discuss how to convert a modifiable ArrayList into an unmodifiable ArrayList using Collections.unmodifiableList(); method 1. Convert ArrayList to Read-only: ArrayList 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 LinkedList elements in ascending & descending order using Collections.sort() method 1. Collections.sort() method Sorts the specified Read More
In this article, we will list down steps to sort Vector 1. Vector: Vector is implementation class of List interface (i.e.; Vector implements List) Vector uses resizable array Read More
In this article, we will discuss how to sort Arrays in both ascending and descending order 1. Sorting Arrays in Ascending order : Passing original/actual Read More
In this article, we will discuss how to get minimum element from ArrayList using Collections class’s utility min() method 1. To get minimum element from Read More
In this article, we will discuss how to get maximum element from ArrayList using Collections class’s utility max() method 1. To get maximum element from Read More