Guide to the Java Queue Interface

2021 VietMX 0

1. Introduction In this tutorial, we’ll be discussing Java’s Queue interface. First, we’ll take a peek at what a Queue does, and some of its core methods. Next, we’ll dive into a […]

Introduction to the Java ArrayDeque

2021 VietMX 1

1. Overview In this tutorial, we’ll show how to use the Java’s ArrayDeque class – which is an implementation of Deque interface. An ArrayDeque (also known as an “Array Double Ended […]

Guide to DelayQueue

2021 VietMX 0

1. Overview In this article, we’ll be looking at the DelayQueue construct from the java.util.concurrent package. This is a blocking queue that could be used in producer-consumer programs. It […]

Guide to the Java TransferQueue

2021 VietMX 0

1. Overview In this article, we’ll be looking at the TransferQueue construct from the standard java.util.concurrent package. Simply put, this queue allows us to create programs according to the […]

A Guide to Java SynchronousQueue

2021 VietMX 0

1. Overview In this article, we’ll be looking at the SynchronousQueue from the java.util.concurrent package. Simply put, this implementation allows us to exchange information between threads in a thread-safe […]

Comparing Two HashMaps in Java

2021 VietMX 0

1. Overview In this tutorial, we’re going to explore different ways to compare two HashMaps in Java. We’ll discuss multiple ways to check if two HashMaps are similar. We’ll also […]

Sort a HashMap in Java

2021 VietMX 0

1. Introduction In this quick tutorial, we’ll learn how to sort a HashMap in Java. More specifically, we’ll look at sorting HashMap entries by their key or value using: TreeMap […]

Merging Two Maps with Java 8

2021 VietMX 0

1. Introduction In this quick tutorial, we’ll demonstrate how to merge two maps using the Java 8 capabilities. To be more specific, we’ll examine different merging scenarios […]

A Guide to Java HashMap

2021 VietMX 0

1. Overview In this article, we’ll see how to use HashMap in Java, and we’ll look at how it works internally. A class very similar to HashMap is Hashtable. Please […]

A Guide to EnumMap

2021 VietMX 0

1. Overview EnumMap is a Map implementation that exclusively takes Enum as its keys. In this tutorial, we’ll discuss its properties, common use cases and when we should use it. […]

A Guide to LinkedHashMap in Java

2021 VietMX 0

1. Overview In this article, we are going to explore the internal implementation of LinkedHashMap class. LinkedHashMap is a common implementation of Map interface. This particular implementation is a subclass of HashMap and […]

Guide to the ConcurrentSkipListMap

2021 VietMX 0

1. Overview In this quick article, we’ll be looking at the ConcurrentSkipListMap class from the java.util.concurrent package. This construct allows us to create thread-safe logic in a lock-free way. […]