
Java 8 – How to split a String and Collect to any Collection
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 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 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 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 TreeSet elements in descending order using Java 8 Stream API Before proceeding with this sorting examples understand Read More
In this article, we will discuss how to sort TreeSet elements in descending order using Comparator interface 1. Comparator interface Compares its two arguments for order 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 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 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 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 discuss how to convert Ordered ArrayList into Sorted TreeSet We can sort ArrayList in both ascending and descending order, by Read More
In this article, we will discuss how to sort HashSet contents in ascending as well as descending order Solution: Ascending order: by passing HashSet contents as Read More
In this article, we will discuss how to sort contents of LinkedList in ascending order containing only unique elements Approach : convert to TreeSet Read More
In this article, we will discuss how to get synchronized version of Collection using Collections class’s utility synchronizedCollection() method How to make Synchronized Collection Read More
In this article, we will compare important implementation classes of Set i.e.; HashSet v/s LinkedHashSet v/s TreeSet So let’s us discuss in tabular format; HashSet Read More
In this article, we will discuss TreeSet class – the implementation class for NavigableSet interface in detail Key points about TreeSet: TreeSet doesn’t allow duplicate items Read More
In this article, we will discuss NavigableSet interface with all its important methods for navigation support in detail Key points about NavigableSet: NavigableSet doesn’t allow Read More