
Java – How to sort LinkedHashMap by its Values ?
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 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 as it uses doubly-linked list and hash table to store element/objects Different 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 1. Step to find duplicate in String Array : Create String Arrays Read More
In this article, we will discuss how to sort collection of, String StringBuffer StringBuilder In Collection framework hierarchy, below classes sorts value/objects stored by-default in Read More
In the previous article, we have discussed on how to remove an entry or entries from HashMap by comparing values using Java 8 APIs Here, Read More
In this article, we will discuss and understand why we need to override toString() method for displaying ArrayList contents Problem statement: Assume that we want Read More
In this article, we will discuss how to merge two arrays and then sort according to natural order i.e.; ascending order. Well, by passing Comparator 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 sort String[] array with example Arrays class has various sort methods for sorting different primitive data-types and Read More
In this article, we will discuss how to sort long[] array with example long: Size is 8 bytes That’s is 64 bits Its range is Read More
In this article, we will discuss how to sort double[] array with example double: Size is 8 bytes That’s is 64 bits Its range is Read More
In this article, we will discuss how to sort float[] array with example float: Size is 4 bytes That’s is 32 bits Its range is Read More
In this article, we will discuss how to sort int[] array with example int: Size is 4 bytes That’s is 32 bits Its range is Read More
In this article, we will discuss how to sort short[] array with example short: Size is 2 bytes Its range is -32,768 to 32,767 Arrays Read More
In this article, we will discuss how to sort char[] array with example char: Size is 2 bytes Its range is 0 to 65,536 (unsigned) Read More
In this article, we will discuss how to sort byte[] array with example Byte: Size is 1 byte Its range is -128 to 127 Arrays Read More
In this article, we will discuss how to remove duplicate elements from ArrayList in Java Already, we have discussed in one of the earlier article Read More