
Java 8 – Conversion of Arrays to List
In this article, we will discuss how to convert Arrays into List in Java 8 using Streams class Conversion of Arrays to List : Until Read More
In this article, we will discuss how to convert Arrays into List in Java 8 using Streams class Conversion of Arrays to List : Until Read More
In this article, we will discuss various ways to remove duplicate elements from Arrays in Java i.e.; Ways to remove duplicate elements from Arrays: Using 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 various ways to iterate through Arrays in Java i.e.; Various ways to iterate through Arrays: Standard/traditional/regular for-loop Enhanced for-loop or 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: To 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 one of the previous articles, we have discussed how to sort list of objects on the basis of single field/attribute using Comparable and Comparator interfaces 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 how to remove duplicate elements from ArrayList Q) How to convert ArrayList to HashSet ? use inter-conversion collection constructor Read More
In this article, we will discuss various ways to iterate through Vector objects Various ways to iterate through Vector: regular for-loop Enhanced for-loop introduced in Read More
In this article, we will discuss how to reverse the contents of LinkedHashSet Key points about LinkedList: LinkedHashSet maintains insertion-order It uses doubly-linked list and Read More
In this article, we will discuss how to convert LinkedList object into a synchronized Vector object 1. Vector v/s LinkedList : Both classes implements List Read More
In this article, we will discuss how to remove duplicate elements from ArrayList maintaining its insertion-order 1. Solution: simply, convert to LinkedHashSet 2. Remove duplicate Read More
In this article, we will discuss how to perform push and pop operations with LinkedList 1. LinkedList and Deque : From Java 1.5 version, after Read More
In this article, we will discuss simple example on LinkedList specific methods i.e.; what are the various methods available in LinkedList class and how it Read More
In this article, we will discuss how to iterate through contents of LinkedList using descendingIterator() method 1. To iterate LinkedList contents in reverse-order : Method signature: Read More
In this article, we will discuss how to replace/update content of ArrayList using set method of List interface This method replaces old value with new Read More
In this article, we will discuss how to sort contents of ArrayList in descending order using Collections class’s utility sort() and reverseOrder() methods sort(); –> to Read More
In this article, we will discuss how to reverse the contents of ArrayList using Collections class’s utility reverse() method 1. To reverse ArrayList contents : Read More