OptionalInt, OptionalLong and OptionalDouble in Java

The OptionalInt, OptionalLong and OptionalDouble in Java are container objects which may contain a int, long and double value respectively.

May 10, 2021

StringTokenizer in Java

The StringTokenizer helps to break a string into tokens with a specified delimiter. In this post, we will learn about StringTokenizer in Java.

April 19, 2021

Java DoubleStream – A Complete Guide

A Java DoubleStream is a sequence of double-valued elements that supports sequential and parallel aggregate operations.

April 5, 2021

Default Methods in Java Map

Many JDK interfaces were enhanced with default methods in Java 8. In this post we will learn about the default methods in the Java Map interface.

March 22, 2021

Apache Commons Lang Validate

The Apache Commons Lang Validate class in the Apache Commons Lang library helps in validating arguments to a method (or a constructor)

March 16, 2021

Apache Commons Lang Range

The Apache Commons Lang library provides utility classes and methods. In the post we will learn about the Apache Commons Lang Range class.

March 1, 2021

Immutable Collections Using Collectors

In Java 10, the Collectors has static utility methods to return collectors which collect the stream elements into an immutable collection.

February 22, 2021

Java Collections Utility Methods

In this post we will learn about the various Java Collections Utility methods that operate on collections or return collections.

February 15, 2021

Collectors collectingAndThen

Collectors collectingAndThen returns a new Collector that adapts a passed Collector to perform a finishing transformation function.

February 1, 2021

Apache Commons Lang ComparableUtils

The Apache Commons Lang ComparableUtils has utility methods for translating a Comparable result into a boolean represented as a Predicate.

January 18, 2021