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 learn how to convert duplicate characters/occurrences to Uppercase letter in a String In one of the previous article, we already 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 sort String[] Arrays by its length in Ascending-order and Descending-order Sorting String[] Arrays by its length: Using Read More
In this article, we will discuss how to find third shortest String in an Arrays and List 1. Finding Third Shortest String in an Arrays: We will follow below 2 Read More
In this article, we will discuss how to find third longest String in an Arrays and List 1. Finding Third Longest String in an Arrays: We will follow below 2 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 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 split a String using different delimiters and collect to any Collection or List or Set Split a Read More
In this article, we will discuss how to get First and Last elements from a Set or HashSet using Java 8 Streams API Find First 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 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 Stream into a TreeSet in Java 1.8 version using Stream API. TreeSet doesn’t allow duplicates but Read More
In this article, we will discuss how to convert Stream into a LinkedHashSet in Java 1.8 version using Stream API. LinkedHashSet doesn’t allow duplicates but Read More
In this article, we will discuss how to convert Stream into a HashSet in Java 1.8 version using Stream API. Unlike List, Set neither allows Read More
In this article, we will discuss how to remove duplicate element/objects from LinkedList with examples using different approaches Also read How to remove duplicates from 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 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 various ways to remove duplicate elements from Arrays in Java i.e.; Ways to remove duplicate elements from Arrays: Using Read More