Core Java
-

How to create a thread-safe ConcurrentHashSet in Java 8?
Until JDK 8, there was no way to create a large, thread-safe, ConcurrentHashSet in Java. The java.util.concurrent package doesn’t even…
Read More » -

Java Command-Line Interfaces (Part 11): CmdLn
This post describes using Ostermiller Java Utilities 1.08.02‘s CmdLn (Java Command Line Parser) to process command-line arguments from Java-based applications.…
Read More » -

What is private in Java 9?
When doing interviews I experience that most of the candidates do not know what private modifier in Java really means.…
Read More » -

How to format/parse dates with LocalDateTime in Java 8 – Example Tutorial
One of the common tasks in Java project is formatting or parsing date to String and vice-versa. Parsing date means…
Read More » -

Getting to know about java.nio.file.Path – 1
Introduction The last few released of Java namely Java 7, Java 8 and the upcoming Java 9 have quite a…
Read More » -

flatMap() and the order of events – RxJava FAQ
As we already discovered, flatMap() does not preserve the order of original stream. Let’s illustrate this using the GeoNames API example from previous article: public…
Read More » -

Java Command-Line Interfaces (Part 10): picocli
The main picocli page describes picocli as “a mighty tiny command line interface” that “is a one-file Java framework for…
Read More » -

RAII in Java
Resource Acquisition Is Initialization (RAII) is a design idea introduced in C++ by Bjarne Stroustrup for exception-safe resource management. Thanks…
Read More » -

Java Command-Line Interfaces (Part 9): parse-cmd
The parse-cmd library consists of a single class, ParseCmd.java, that is “a Java-class used to define and parse command-line parameters…
Read More »
