Convert Set to List and List to Set
In this article, let's explore various methods to convert Set to List and List to Set. In the following examples, we will see how we can achieve this using Java,…
Our team work realy hard to produce quality content on this website and we noticed you have ad-blocking enabled. Advertisements and advertising enable us to continue working and provide high-quality content.
In this article, let's explore various methods to convert Set to List and List to Set. In the following examples, we will see how we can achieve this using Java,…
In this article, we will see the differences between ZonedDateTime and OffsetDateTime, both introduced in the Java 8 API. We will try to see and clarify which one to use…
In this post, we are going to show an example of a OneToMany relationship in Hibernate, where we will see how we can map this type of relationship using JPA.…
WebFlux was born in Spring 5 as a stack to provide Spring with non-blocking functionality and reactive programming. In this WebFlux Guide in Spring Boot, we will cover the basic…
The arrival of JUnit 5 brought some improvements and innovations, such as Parametized Test with JUnit 5. This new functionality allows us to execute a test multiple times with different…
The handling of lists in Java, starting from Java 8, often involves the use of Streams. In this brief article, we will see how to sort lists with Stream in…
Let's see how to initialize an ArrayList in Java according to our needs. There are multiple ways to do it, and in this article, we will cover the most frequent…
When performing tests in our applications, we often want to compare lists to ensure they are equal. However, sometimes the order is different and the test fails. In this post,…
In this post we are going to see how we can convert OffsetDateTime to LocalDate and LocalDateTime, as well as to LocalTime in Java. These date types were introduced in…
To test our Spring Boot app with Spring Data, we often use an embedded in-memory database like H2. Although this is a very valid approach on occasion, we may want…