
Java 8 – How to remove duplicates from ArrayList
In this article, we will discuss how to remove duplicates element/objects from ArrayList along with various examples. 1. Stream distinct() method Stream’s distinct() method returns Read More
In this article, we will discuss how to remove duplicates element/objects from ArrayList along with various examples. 1. Stream distinct() method Stream’s distinct() method returns Read More
In this article, we will discuss how to remove elements from LinkedList There are different methods available in LinkedList class for removing elements as listed Read More
In this article, we will discuss on how to configure http port for any Spring Boot application. Spring Boot As many of the Spring Boot Read More
In this article, we will discuss how to sort HashSet in Java 8. Already, in one of the earlier article we discussed about HashSet sorting in Read More
In this article, we will discuss and execute simple program to check whether 2 Strings are Anagrams or not Anagrams: Anagrams means 2 different strings Read More
In this article, we will discuss and understand with a program to check whether HashMap is empty or not In earlier article, we have seen Read More
In this article, we will discuss how to convert ArrayList to Arrays in different ways 1. Conversion of ArrayList to String Arrays using toArrays(); method Read More
In this article, we will discuss steps and execution program to delete/remove all duplicate characters/occurrences from given String Remove duplicate characters from String in Read More
In this article, we will discuss how to convert ordered LinkedHashMap into Sorted TreeMap by its Values Sorting LinkedHashMap in ascending/descending order by its Values: Ascending order sorting: get Read More
In this article, we will discuss how to convert ordered LinkedHashMap into Sorted TreeMap by its Keys Sorting LinkedHashMap in both Ascending/descending order by its Keys: Ascending order: pass LinkedHashMap entries 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 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 Arrays: Create String Arrays consisting Read More
Java Exception handling: There are 5 keywords related to Exception Handling; those are try catch throw throws finally try-catch-finally combination: We can use 3 combination of Read More
In this article, we will see sample program involving static method What will be output of following program ? Output: Explanation: We are invoking Read More
In this article, we will discuss OOPs Principle with respect to Java Programming Language. OOPs which stands for Object-Oriented Programming defines different principle approaches which Read More
In this article, we will cover some of the interview questions with their justification on Serialization concept in Java These are most frequently asked interview Read More
In this article, we will discuss the difference between non-generics & generics versions of ArrayList i.e.; ArrayList v/s ArrayList<T> ArrayList v/s ArrayList<T>: ArrayList ArrayList<T> Read More
In this article, we will cover some of the interview questions with their justification on Generics concepts introduced in Java 1.5 version These are most Read More