
Java 8 – Comparator.comparing() method for custom/reverse sorting
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 of Objects on the basis of any one parameter/field using Java 8 Comparator’s static method Read More
In one of the previous article, we discussed on how to sort list of objects on multiple field/parameters where we have coded/developed our own customized Read More
In this article, we will see how to sort list and Array of objects with null values present Generally, sorting any List/Array which contains one/more Read More
In this article, we will discuss how to sort LinkedHashSet elements in ascending & descending order using Java 8 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 remove/eliminate null & empty values from a Stream using filter() method 1. Integer Stream – filter null Read More
In this article, we will discuss Stream’s peek() method in details with examples 1. Stream peek() method : This Stream method is an intermediate operation Read More
In this article, we will discuss Stream’s min() and max() methods in details with examples 1. Stream min() method : This Stream method is a Read More
In this article, we will discuss Stream’s distinct() method in details with examples 1. Stream distinct() method : This Stream method is an intermediate operation Read More
In this article, we will discuss Stream’s count() method in details with examples 1. Stream count() method : This Stream method is a terminal operation Read More
In this article, we will discuss various ways to create Stream in Java 1.8 version 1. Stream API method : There are few useful methods Read More
In this article, we will discuss how to remove elements from LinkedList There are different methods available in LinkedList class for removing elements as listed Read More
In this article, we will discuss how to sort HashSet in Java 8. Already, in one of the earlier article we discussed about HashSet Sorting in Read More
In this article, we will discuss how to convert ordered LinkedHashMap into Sorted TreeMap by its Values With the introduction of Java 8 APIs, sorting LinkedHashMap become easy and more Read More
In this article, we will discuss how to convert ordered LinkedHashMap into Sorted TreeMap by its Keys With the introduction of Java 8 APIs, sorting LinkedHashMap become easy and more 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 various ways to iterate through TreeMap. We will list down various Map implementation classes and their key property like element/objects storing-order 1. Read More
In this article, we will discuss various ways to iterate through TreeSet – 3 ways Various ways to iterate through TreeSet: Enhanced for-loop introduced in Java 1.5 version Iterating Read More
In this article, we will see how to find duplicate in String[] Arrays Finding duplicates in String[] Arrays : Check duplicates present or not ? Read More