
Java 8 – Convert Stream to HashSet
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 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 convert Stream into a LinkedList in Java 1.8 version using Stream API Stream to LinkedList : Using Read More
In this article, we will discuss how to convert Stream into an ArrayList in Java 1.8 version using Stream API Stream to ArrayList : Using Read More
In this article, we will discuss how to iterate/print List (ArrayList/LinkedList) from Java 1.0 to Java 1.8 version. In one of the previous article, we 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 discuss how to sort list of Objects on multiple field/parameters using static method Comparator.comparing() and default method thenComparingDouble() Comparing.comparing() method is Read More
In this article, we will discuss how to sort list of Objects on multiple field/parameters using static method Comparator.comparing() and default method thenComparingLong() Comparing.comparing() method is Read More
In this article, we will discuss how to sort list of Objects on multiple field/parameters using static method Comparator.comparing() and default method thenComparingInt() Comparing.comparing() method is Read More
In this article, we will discuss how to sort list of Objects on multiple field/parameters using static method Comparator.comparing() and default method thenComparing() for custom/reverse sorting Read More
In this article, we will discuss how to sort list of Objects on multiple field/parameters using static method Comparator.comparing() and default method Comparator.thenComparing() 2-level attribute sorting Read More
In this article, we will discuss how to sort list of Objects on the basis of specific double parameter/field using Java 8 Comparator’s static method Read More
In this article, we will discuss how to sort list of Objects on the basis of specific long parameter/field using Java 8 Comparator’s static method Read More
In this article, we will discuss how to sort list of Objects on the basis of specific integer parameter/field using Java 8 Comparator’s static method Read More
In this article, we will discuss how to sort list of Objects on the basis of any one parameter/field using Java 8 Comparator’s static method Read More
In this article, we will discuss how to sort list of Objects on the basis of any one parameter/field using Java 8 Comparator’s static method Read More
In this article, we will discuss how to sort list using Java 8 Comparator’s default method – reversed() which returns a comparator for sorting in Read More
In this article, we will discuss how to sort list using Java 8 Comparator’s static methods – naturalOrder() and reverseOrder() 1. Comparator.naturalOrder() method : Returns 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 a LinkedHashMap entries (key-value pairs) by its Value in Java 8 using Stream‘s sorted() method and Read More
In this article, we will discuss how to sort a LinkedHashMap entries (or key-value pairs) by its Key in Java 8 using Stream‘s sorted() method Read More