Create a Java Command Line Program with Picocli 1. Introduction In this tutorial, we’ll approach the picocli library, which allows us to easily create command line programs in Java. We’ll first get started by creating a Hello World command. We’ll then take a deep dive into the key features of… Continue Reading java-picocli-create-command-line-program

List of Primitive Integer Values in Java 1. Overview In this tutorial, we’ll learn how to construct a list containing primitive integer values. We’ll explore solutions using core Java and external libraries. 2. Autoboxing In Java, generic type arguments must be reference types. This means we can’t do something like List<int>.… Continue Reading java-list-primitive-int

The Java SecureRandom Class 1. Introduction In this short tutorial, we’ll learn about java.security.SecureRandom, a class that provides a cryptographically strong random number generator. 2. Comparison to java.util.Random Standard JDK implementations of java.util.Random use a Linear Congruential Generator (LCG) algorithm for providing random numbers. The problem with this algorithm is that it’s… Continue Reading java-secure-random