Explore lazy constants in Java.
Also find me here:
Baeldung Author
Daniel McNally
Daniel is a passionate tech lead specializing in Java and Spring Boot. He holds a Master's degree in Software Development, a PGCert in Applied Cyber Security, and various AWS certifications.
Here's what I've written (so far):
Baeldung on Java
- All
- Java String (3)
- Java Map (2)
- Java Collections (2)
- Core Java (2)
- Java Streams (1)
- Java Numbers (1)
Putting Value Into Map if Not Null in Java
Filed under Java Map
Learn to avoid inserting a null value into a map in Java.
Pass Collection as Varargs Argument
Filed under Java Collections
Ever found yourself writing multiple overloaded methods just to handle different numbers of arguments? Java’s varargs feature might be the elegant solution you’ve been looking for.
Java Strip Methods
Filed under Java String
Learn about various strip methods introduced in Java 11 and 13 within the String class, including strip(), stripLeading(), stripTrailing(), and stripIndent().
Difference Between Optional.of() and Optional.ofNullable() in Java
Filed under Core Java
Discover the differences between Optional.of() and Optional.ofNullabe() in Java.
Get Last n Characters From a String
Filed under Java String
Learn a few different ways to get the last n characters from a String.
Collect Stream of entrySet() to a LinkedHashMap
Filed under Java Map, Java Streams
Explore various ways to collect a stream of Map.Entry objects into a LinkedHashMap.
Convert String to long or Long in Java
Filed under Java Numbers, Java String
In this tutorial, we learn how to convert a String to a long primitive or Long object.
Return First Non-null Value in Java
Filed under Java Collections
Learn how to retrieve the first non-null value in a collection of item, or sequence of method calls.