Learn various ways to convert Queue to List in Java.
Search Results for: object
Convert Jackson JsonNode to Typed Collection
Explore different methods of converting Jackson’s raw data type JsonNode into typed Java collections.
How to Iterate a List of Maps in Java
Explore various techniques for iterating through a List of Maps in Java.
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.
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.
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.
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.
Get the Position of Key/Value in LinkedHashMap Using Its Key
Explore different approaches to getting the position of a key value within a LinkedHashMap 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.
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.
How to Test a Spring AOP Aspect
Learn how to conduct unit and integration tests on Spring AOP aspects.
Finding The Index of the Smallest Element in an Array
Learn how to find the index of the smallest element in an array.