Explore various approaches to converting Optional to ArrayList.
Search Results for: var
Using Reactor Mono.cache() for Memoization
In this tutorial, we learn about memoization and demonstrate how to use Mono.cache() from the Project Reactor.
Inheritance vs. Composition in JPA
Explore the fundamental differences between inheritance and composition in JPA entity modeling.
Converting short to byte[] in Java
Learn how to convert a short value to a byte[] array.
Save Child Objects Automatically Using JPA
Learn how to save child objects automatically with JPA.
How to Convert Between java.sql.Timestamp and ZonedDateTime in Java
Learn how to convert between ZonedDateTime and java.sql.Timestamp classes in Java.
Casting Maps to Complex Objects
Learn how to convert a Map to an Object or POJO in Java.
Introduction to Java 22
Explore the latest Java release, Java 22, which is now in General Availability.
Difference Between Lombok @AllArgsConstructor, @RequiredArgsConstructor and @NoArgConstructor
Learn about different constructor generation annotations in Lombok and when to use them.
Remove All Characters Before a Specific Character in Java
Explore several approaches to removing all characters before a specified character in a string.
Handling Nulls in ArrayList.addAll()
Learn how to handle nulls in ArrayList.addAll().
Converting Float ArrayList to Primitive Array in Java
Learn how to convert an ArrayList of wrapper classes into an array of primitives.
Print Distinct Characters of a String in Java
Explore various approaches to handling and processing unique characters.
Spring WebClient exchange() vs retrieve()
In this article, we explore the key methods from the WebClient interface, including retrieve(), exchangeToMono(), and exchangeToFlux().
Resolving Security Exception: java.security.UnrecoverableKeyException: Cannot Recover Key
Learn everything you need to know about java.security.UnrecoverableKeyException – what causes it and how to fix it.
Intro to Apache Commons Configuration Project
Apache Commons Configuration can be used to allow us to specify configuration parameters to be loaded at runtime by our application. We look at a few use cases and types of configuration files.
Get Nextval From Sequence With Spring JPA
Explore a few approaches for fetching the next value from a database sequence using Spring Data JPA.
Setting Default TimeZone in Spring Boot Application
You may wish your Spring Boot application to run with a timezone different from your machine’s default. In this tutorial, you can learn to configure this at different points during Spring’s startup.
Create HashMap with Character Count of a String in Java
Learn how to create a HashMap with a string’s character count.
Get 2’s Complement of a Number in Java
Learn how to get the 2’s complement of a number in Java.