Java

56 articles

Formatting Strings With Java

 · 7 min
We all know String.format(...). But there are other options. Java has multiple ways of formatting, aligning, padding, and justifying Strings.
Read More
Java NIO (“non-blocking I/O”) is a great feature set for dealing with I/O operations. Introduced by Java 1.4, it was further improved in Java 7.
Read More

The JDK Ecosystem

 · 7 min
About 10 years after Java’s inception in 1996, Sun Microsystems released OpenJDK in 2007, a free and open-source implementation of Java SE. Many companies started to join as contributors.
Read More
The JDK is evolving with every new release, adding more and improving existing features. Beneath the surface are hidden gems that make our lives much easier.
Read More
Not many components live on their own, without any dependencies on others. Instead of tightly coupling them, we can improve the separation of concerns with dependency injection (DI).
Read More

JShell, the Java REPL

 · 9 min
Many languages contain a REPL, a Read-Evaluate-Print Loop. It evaluates declarations, statements, and expressions as they are entered and immediately shows the results. With Java 9, we finally got one too.
Read More