Collectors filtering, flatMapping and teeing

In this post, we will learn about the new methods added to the Java Collectors from Java 9 to 11 (Collectors filtering, flatMapping and teeing).

June 1, 2020

Default Method Resolution Rules

This post covers the default method resolution rules. These will be used when a class inherits more than one method with the same signature.

May 25, 2020

Files WalkFileTree

The Files.walkFileTree static method from the NIO Files class is used to walk a file tree. The walk traverses the directory tree in a depth-first order.

May 18, 2020

Java NIO Files Directory

The Java NIO Files class has static utility methods that operate on files and directories. In this post, we learn about the common operations on directories

May 11, 2020

Java NIO Files – Part I

The Java NIO Files class has static utility methods that operate on files and directories. This post covers the NIO operations on files.

May 5, 2020

Convenience Factory Methods for Collections

Java 9 introduced the Convenience Factory Methods for Collections that make it convenient to create instances of collections or maps with few elements

April 27, 2020

Preconditions in Google Guava

Preconditions in the Google Guava offers static utility methods that will help us write one-line statements for doing precondition validations.

April 21, 2020

Measuring Elapsed Time in Java Using a Stopwatch

This post is about measuring elapsed time in Java using a Stopwatch. We will over cover the Stopwatch from Google Guava and the Apache Commons lang.

April 13, 2020

Default Methods in Java

Default methods in Java enable us to add new functionality to the interfaces of our libraries without breaking the existing implementations of the interface

April 6, 2020

ListIterator in Java with examples

A ListIterator in Java is an Iterator that allows us to traverse the list in either direction, modify the list during iteration, and obtain the iterator’s current position in the list.

March 30, 2020