Learn how to determine the Cartesian product of an arbitrary number of sets in Java.
Search Results for: set
Get a Random Element From a Set in Java
A quick and practical guide to getting a random Set element in Java.
Converting an int[] to HashSet in Java
Learn multiple approaches to converting an int[] to a HashSet in Java.
How to Get First Item From a Java Set
Learn how to get the first item from a Java Set.
Setup Http Patch Request With OpenFeign
Spring Cloud OpenFeign makes it easy to write a client to REST APIs. We can use this for PATCH requests. We look at how this works and how to set it up to avoid common pitfalls.
Setting Default Values to Null Fields in Jackson Mapping
Explore three ways of dealing with missing or null values in JSON when parsing it with Jackson.
Set Default Value for Elements in List
Explore various approaches to initialize a Java List with default values.
OffsetDateTime Serialization With Jackson
Learn how to serialize and deserialize OffsetDateTime with Jackson in Java.
OpenTelemetry Setup in Spring Boot Application
Deploying microservices can lead to challenges in tracing requests across those services. With OpenTelemetry we’re able to capture logs from independent services and use them to observe traces of entire requests. We look at how to achieve this in Spring.
Sorting a HashSet in Java
Learn multiple techniques to sort the elements of a HashSet.
Set the Date Format Using Apache POI
A quick and practical guide to configuring date format with Apache Poi.
A Guide to LinkedHashSet in Java
Explore the LinkedHashSet data structure from the Java Collections library.
TLS Setup in MySQL and Spring Boot Application
Learn how to enable a secure connection on a MySQL server.
Setting Time-To-Live Value for Caching
Learn how to set TTL caching for Spring-based caching.
Using Streams to Collect Into a TreeSet
Explore how to collect elements in a Stream into a TreeSet.
Patterns for Iterating Over Large Result Sets With Spring Data JPA
Learn various ways of iterating through large data sets retrieved with Spring Data JPA.
Set vs List in Java
Explore the difference between a List and a Set in Java.
What Are the Spring Boot Default Memory Settings?
Learn about the default values of various heap and stack memory configuration options available for Java applications.
Setting Request Headers Using Feign
OpenFeign is a library that helps us build clients to web services by expressing the contract in a Java interface. We look at how to include header values in our requests through the interface, with fixed and dynamic values, and how to handle cross-cutting concerns like authorization by using interceptors.
Converting a JDBC ResultSet to JSON in Java
Learn three different ways to convert a JDBC ResultSet to a JSON object.