Iterate Map in java There are different ways to iterate a map in java. java.util.Map is an…

Java Collection ProblemsA collection of 21 posts
In this article, we will look at 4 different ways to convert a List to Map in…
[the_ad id=”684″] In this article, we will take a look at creating list of arrays in java with…
Sort list of objects Suppose you have a list which contains objects of your own class rather…
Shuffling the contents of an ArrayList is a problem which can test the logic of a person…
Many times it happens when you are iterating over an ArrayList and you want to remove items…
Scenario Suppose there is a list of objects. It may happen that you want to delete an…
Suppose I have a list of custom objects, say Employee. The Employee class has two fields namely…
Iterating in reverse order means fetching last element of the map first, second last element at second…