This tutorial shows you how to convert Set to List in Java using different ways.
This tutorial explains you two ways to find intersection of two Sets, i.e., using Java 8 Stream feature and Set’s retainAll() method.
EnumSet is one of the specialized Set interface implementation for use with enum types which was introduced in Java 1.5. Many don’t know the purpose or unware of this implementation and end up in storing Enum data in to common… Read More!
The Set interface is a collection that cannot contain duplicate elements. It models the mathematical set abstraction and is used to represent sets like below Cards comprising a poker hand Courses making up the schedule of a student The processes running… Read More!
Given set of two unsorted arrays as input, the goal is to find common elements between them in an efficient way. Let’s solve this problem using the following methods i.e., Method 1: Iterative approach, Method 2: Using HashSet and Method 3:… Read More!