Java List UnsupportedOperationException

2021 VietMX 0

1. Overview In this quick tutorial, we’ll discuss a common Exception that can occur when working with some the API of most List implementations – the UnsupportedOperationException. A java.util.List has more functionality than […]

Partition a List in Java

2021 VietMX 0

1. Overview In this tutorial I will illustrate how to split a List into several sublists of a given size. For a relatively simple operation, there is […]

Multi Dimensional ArrayList in Java

2021 VietMX 0

1. Overview Creating a multidimensional ArrayList often comes up during programming. In many cases, there is a need to create a two-dimensional ArrayList or a three-dimensional ArrayList. In this tutorial, we’ll discuss […]

Immutable ArrayList in Java

2021 VietMX 0

1. Overview This quick tutorial will show how to make an ArrayList immutable with the core JDK, with Guava and finally with Apache Commons Collections 4. This article is […]

Guide to the Java ArrayList

2021 VietMX 0

1. Overview In this article, we’re going to take a look at ArrayList class from the Java Collections Framework. We’ll discuss its properties, common use cases, as […]

A Guide to the Java LinkedList

2021 VietMX 0

1. Introduction LinkedList is a doubly-linked list implementation of the List and Deque interfaces. It implements all optional list operations and permits all elements (including null). 2. Features Below you can […]

CyclicBarrier in Java

2021 VietMX 0

1. Introduction CyclicBarriers are synchronization constructs that were introduced with Java 5 as a part of the java.util.concurrent package. In this article, we’ll explore this implementation in a […]