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

Integration Testing in Spring 1. Overview Integration testing plays an important role in the application development cycle by verifying end-to-end behavior of the system. In this article we will see how we can leverage the Spring MVC test framework in order to write and run integration tests that test controllers… Continue Reading integration-testing-in-spring