Java Enum Set

In this tutorial, we will learn about the Java LinkedHashSet class and its methods with the help of examples. The LinkedHashSet class of the Java collections framework provides functionalities of both the hashtable and the linked list data structure. It implements the Set interface. Elements of LinkedHashSet are stored in hash tables similar to HashSet. However, linked hash sets maintain a… Continue reading Java Enum Set

Hash Set Class

In this tutorial, we will learn about the Java HashSet class. We will learn about different hash set methods and operations with the help of examples. The HashSet class of the Java Collections framework provides the functionalities of the hash table data structure. It implements the Set interface. Creating a HashSet In order to create a hash set,… Continue reading Hash Set Class

Java Set Interface

In this tutorial, we will learn about the Set interface in Java and its methods. The Set interface of the Java Collections framework provides the features of the mathematical set in Java. It extends the Collection interface. Unlike the List interface, sets cannot contain duplicate elements. Classes that implement Set Since Set is an interface, we cannot create objects from it. In order to use… Continue reading Java Set Interface