Zipping Collections in Java

2021 VietMX 0

1. Introduction In this tutorial, we’ll illustrate how to zip two collections into one logical collection. The “zip” operation is slightly different from the standard “concat” […]

Sorting in Java

2021 VietMX 0

1. Overview This article will illustrate how to apply sorting to Array, List, Set and Map in Java 7 and Java 8. 2. Sorting With Array Let’s start by sorting integer arrays […]

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 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 […]