
Java – How to Merge or Concatenate 2 Arrays
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 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 HashMap entries into an unmodifiable HashMap entries using Collections.unmodifiableMap(); method Convert HashMap to Read-only Read More
In this article, we will discuss how to convert a modifiable HashSet into an unmodifiable HashSet using Collections.unmodifiableSet(); method Convert HashSet to Read-only HashSet is Read More
In this article, we will discuss how to convert a modifiable ArrayList into an unmodifiable ArrayList using Collections.unmodifiableList(); method Convert ArrayList to Read-only ArrayList is Read More
In this article, we will discuss how to sort TreeMap entries by its Keys in descending order 1. Collections.reverseOrder() Returns a comparator that imposes the Read More
In this article, we will discuss different ways to sort a Map entries (key-value pairs) by its Value Before proceeding with this sorting examples understand 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 LinkedList elements in ascending & descending order using Collections.sort() method 1. Collections.sort() method Sorts the specified Read More
In this article, we will list down steps to sort Vector Vector: Vector is implementation class of List interface (i.e.; Vector implements List) Vector uses resizable array or 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 get minimum element from ArrayList using Collections class’s utility min() method To get minimum element from Read More
In this article, we will discuss how to get maximum element from ArrayList using Collections class’s utility max() method To get maximum element from Read More
In this article, we will discuss how to remove duplicate elements from ArrayList How to convert ArrayList to HashSet ? use inter-conversion collection constructor Read More
In this article, we will discuss how to reverse the contents of LinkedHashSet Key points about LinkedList: LinkedHashSet maintains insertion-order as it uses doubly-linked list Read More
In this article, we will discuss how to convert Arrays into Vector using Arrays class’s utility asList() method Conversion of Arrays into Vector : Read More
In this article, we will discuss how to create ArrayList using Collections class’s utility nCopies() method This is used to create ArrayList containing multiple copies Read More
In this article, we will discuss how to convert Arrays into List using Arrays class’s utility asList() method 1. Conversion of Arrays to List Read More
In this article, we will discuss how to shuffle elements of ArrayList using Collections class’s utility shuffle() method Shuffling elements of ArrayList: Method signature: Read More
In this article, we will discuss how to copy elements of one List to another List (ArrayList –> ArrayList) using Collections class’s utility copy() method Read More
In this article, we will discuss how to swap elements of List or ArrayList using Collections class’s utility swap() method Swapping 2 elements of Read More