Tag Archives: Java tutorial

Java tutorials for Beginners – Java EnumMap

(Java programming Example for Beginners) Java EnumMap In this tutorial, we will learn about the Java EnumMap class and its operations with the help of examples. The EnumMap class of the Java collections framework provides a map implementation for elements of an enum. In EnumMap, enum elements are used as keys. It implements the Map interface. Before we learn about EnumMap, …

Java tutorials for Beginners – Java LinkedHashMap

(Java programming Example for Beginners) Java LinkedHashMap In this tutorial, we will learn about the Java LinkedHashMap class and its operations with the help of examples. The LinkedHashMap class of the Java collections framework provides the hash table and linked list implementation of the Map interface. The LinkedHashMap interface extends the HashMap class to store its entries in a hash table. It …

Java tutorials for Beginners – Java HashMap

(Java programming Example for Beginners) Java HashMap In this tutorial, we will learn about the Java HashMap class and its methods with the help of examples. The HashMap class of the Java collections framework provides the hash table implementation of the Map interface. Create a HashMap In order to create a hash map, we must import the java.util.HashMap package first. …

Java tutorials for Beginners – Java LinkedBlockingQueue

(Java programming Example for Beginners) Java LinkedBlockingQueue In this tutorial, we will learn about the LinkedBLockingQueue class and its methods with the help of examples. The LinkedBlockingQueue class of the Java Collections framework provides the blocking queue implementation using a linked list. It implements the Java BlockingQueue interface. Creating LinkedBlockingQueue In order to create a linked blocking queue, we must …

Java tutorials for Beginners – Java ArrayBlockingQueue

(Java programming Example for Beginners) Java ArrayBlockingQueue In this tutorial, we will learn about the ArrayBlockingQueue class and its methods with the help of examples. The ArrayBlockingQueue class of the Java Collections framework provides the blocking queue implementation using an array. It implements the Java BlockingQueue interface. Creating ArrayBlockingQueue In order to create an array blocking queue, we …

Java tutorials for Beginners – Java BlockingQueue

(Java programming Example for Beginners) Java BlockingQueue In this tutorial, we will learn about the Java BlockingQueue interface and its methods. The BlockingQueue interface of the Java Collections framework extends the Queue interface. It allows any operation to wait until it can be successfully performed. For example, if we want to delete an element from an empty queue, then the …

Java tutorials for Beginners – Java LinkedList

(Java programming Example for Beginners) Java LinkedList In this tutorial, we will learn about the LinkedList class in detail with the help of a lot of examples. The LinkedList class of the Java collections framework provides the functionality of the linked list data structure. Interfaces implemented by LinkedList Java List Interface Java Queue Interface Java Deque Interface …

Java tutorials for Beginners – Java Deque Interface

(Java programming Example for Beginners) Java Deque Interface In this tutorial, we will learn about the Deque interface, how to use it, and its methods. The Deque interface of the Java collections framework provides the functionality of a double-ended queue. It extends the Queue interface. Working of Deque In a regular queue, elements are added from the rear and …

Java tutorials for Beginners – Java Queue Interface

(Java programming Example for Beginners) Java Queue Interface In this tutorial, we will learn about the Java Queue interface and its methods. The Queue interface of the Java collections framework provides the functionality of the queue data structure. It extends the Collection interface. Classes that Implement Queue Since the Queue is an interface, we cannot provide the direct implementation of it. …