Learn various ways to convert Queue to List in Java.
Search Results for: sum
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.
OpenAPI Custom Generator
Learn the steps required to create a custom generator for the OpenAPI generator tool.
Fix Spring Boot H2 JdbcSQLSyntaxErrorException “Table not found”
This tutorial explores addressing the “Table not found” error in H2 databases, commonly encountered in Spring Boot applications. You can mitigate this issue by configuring H2, mapping entities, and managing data with JPA repositories.
How to Unit Test an ExecutorService Without Using Thread.sleep()
Learn how to unit test an ExecutorService instance without using the Thread.sleep() method.
Get JSON Content as Object Using MockMVC
Explore several ways to get JSON content as an object using MockMVC and Spring Boot.
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.
Generate Java Classes From Avro Schemas Using Gradle
Learn to generate Java classes from Apache Avro schemas using Gradle.
Converting Float ArrayList to Primitive Array in Java
Learn how to convert an ArrayList of wrapper classes into an array of primitives.
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.
Create HashMap with Character Count of a String in Java
Learn how to create a HashMap with a string’s character count.
Continue the Test Even After Assertion Failure in TestNG
Learn how to make multiple assertions using TestNG’s SoftAssert and find out why that is a valuable tool for writing clean tests with reduced debugging time.
Role-Based Access Control in Quarkus
Explore the RBAC system and learn how to leverage the Quarkus framework to implement it.
BigDecimal equals() vs. compareTo()
Explore the differences between BigDecimal equals() and compareTo() methods.
Converting Image to BufferedImage in Java
A quick and practical guide to converting images to BufferedImage in Java.
Calculating Moving Averages in Java
Let’s explore various methods and techniques for calculating moving averages, ranging from traditional approaches to libraries and Stream API’s.
Implement the Builder Pattern in Java 8
Learn how to implement a Builder Pattern in Java 8.