Explore various techniques for iterating through a List of Maps in Java.
Search Results for: add
Convert an Optional to an ArrayList in Java
Explore various approaches to converting Optional to ArrayList.
Using Reactor Mono.cache() for Memoization
In this tutorial, we learn about memoization and demonstrate how to use Mono.cache() from the Project Reactor.
Full and Partial Text Search in MongoDB
Explore how to do full and partial text searches in MongoDB.
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.
Save Child Objects Automatically Using JPA
Learn how to save child objects automatically with JPA.
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.
Collecting into Map using Collectors.toMap() vs Collectors.groupingBy()
Learn about the difference between toMap and groupingBy when collecting a Java Stream into a Map.
How to Convert Between java.sql.Timestamp and ZonedDateTime in Java
Learn how to convert between ZonedDateTime and java.sql.Timestamp classes in Java.
Avoiding the IndexOutOfBoundsException When Using List.subList() in Java
In Java, subList() creates a sub-list from a larger list, but it can throw an exception if you give it invalid starting or ending positions. Learn how to avoid this error.
Casting Maps to Complex Objects
Learn how to convert a Map to an Object or POJO in Java.
How to Implement Elvis Operator in Java 8
Implement the Elvis operator in Java 8 using the Optional class and ternary operator.
Mapping Enum to String Using MapStruct
A quick tutorial on using MapStruct to convert enums to strings.
How to Unit Test an ExecutorService Without Using Thread.sleep()
Learn how to unit test an ExecutorService instance without using the Thread.sleep() method.
Using MapStruct With Inheritance
Learn how to use the Mapstruct mappers with inherited Java bean classes.
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.