
Conversion of Map to List in Java 8
In this article, we will discuss how to convert Map into List in Java 1.8 version As Map contains key-value pairs which is called Read More
In this article, we will discuss how to convert Map into List in Java 1.8 version As Map contains key-value pairs which is called Read More
In this article, we will discuss how to convert Map into List in Java As Map contains key-value pairs which is called as Map Read More
In this article, we will discuss how to convert Arrays into List in Java 8 using Streams class Solution (version-wise): Until Java 1.7 version, Read More
In this article, we will discuss various ways to remove duplicate elements from Arrays in Java i.e.; Various ways to remove duplicate elements from 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
In this article, we will discuss how to sort contents of ArrayList using sort() method of List in Java 8 Until Java 1.7 version: Read More
In this article, we will discuss difference between Arrays and ArrayList in detail i.e.; Arrays v/s ArrayList Difference will be based on below parameters, Size Read More
In this article, we will discuss different ways to iterate through List of HashMap. Already, in earlier articles, we have discussed following topics Iterating over Read More
In previous articles, we have discussed how to sort list of objects on the basis of single field using Comparable and Comparator interfaces Read Java 8 Read More
In one of the previous articles, we already discussed different ways to iterate through Map but those are with String object only i.e.; both keys and values are Read More
In this article, we will discuss how to serialize list of objects and also de-serializing same Already we have seen how to serialize and de-serialize objects Read More
In this article, we will discuss difference between CopyOnWriteArrayList and SynchronizedList classes in detail i.e.; CopyOnWriteArrayList v/s SynchronizedList Lets us move on and discuss key differences Read More
In this article, we will discuss difference between CopyOnWriteArrayList and ArrayList classes in detail i.e.; CopyOnWriteArrayList v/s ArrayList Lets us move on and discuss key differences Read More
In this article, we will discuss what happens when element is removed from CopyOnWriteArrayList and ArrayList while iterating using Iterator i.e.; remove() operation with CopyOnWriteArrayList; Read More
In this article, we will discuss how can we achieve both read (iterate) and modify (remove/add) operations simultaneously by 2 different threads using CopyOnWriteArrayList which Read More
In this article, we will discuss CopyOnWriteArrayList class – the implementation class for List interface in detail This is the thread-safe version of ArrayList, where Read More
In this article, we will discuss how to remove elements from ArrayList while iterating Collections objects using Iterator interface Note: ConcurrentModificationException will be thrown when 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 convert Ordered ArrayList into Sorted TreeSet We can sort ArrayList in both ascending and descending order, by Read More