Learn how to check if an Optional contains a particular value in Java.
Search Results for:
Difference Between Optional.of() and Optional.ofNullable() in Java
Discover the differences between Optional.of() and Optional.ofNullabe() in Java.
Mocking Protected Method in Java
Learn how to mock a protected method with Mockito.
Add Global Exception Interceptor in gRPC Server
Explore the role of interceptors in gRPC server applications to handle global exceptions.
Fault Tolerance in Java Using Failsafe
A quick and practical guide to fault tolerance with Failsafe.
Disable Logging From a Specific Class in Logback
A quick and practical guide to disabling Logback logging in a specific class.
How to Compile Java to WASM (Web Assembly)
Explore WASM and find an overview of the tools for converting Java code into WebAssembly.
Extract Text From a HTML Tag with Regex
Explore different approaches to extracting text from HTML tags in Java.
How to Set JVM Arguments in IntelliJ IDEA?
IntelliJ allows us to configure the JVM it uses for development and debugging. We look at how to set these configurations and how to share them with the team.
The Difference Between doAnswer() and thenReturn() in Mockito
Explore the usage of Mockito’s doAnswer() and thenReturn() stubbing techniques
How to Make Multiple REST Calls in CompletableFuture
This tutorial demonstrates using Java’s CompletableFuture to efficiently retrieve data from multiple REST APIs concurrently, enhancing response times and scalability in microservices.
Java Weekly, Issue 542
JMV optimization, much better imports and Markdown in Javadoc? Java keeps getting better.
Add an Aggregation to an Elasticsearch Query
Discover how to request data with aggregated information in Elasticsearch.
Understanding Maven Dependency Graph or Tree
Learn how to create a Maven dependency tree, filter dependencies, and create output in different formats.
Check if Two Strings Are Permutations of Each Other in Java
Explore some algorithms for checking whether a string is a permutation of another string.
Git Integration in IntelliJ IDEA
Learn how to use IntelliJ’s integration with the Git version control system.
Logging SQL Queries to the Console in Mybatis
We can configure Mybatis to log queries and results. In this article, we look at how this works and how to fine-tune the logging.
Apache Commons Tutorial
Learn how to work with Apache Commons projects.
Supply Enum Value to an Annotation From a Constant in Java
Learn about Java’s limitations in supplying an enum value from a constant to an annotation and explored our alternatives.
All Bulk Team Courses
All bulk team Baeldung courses.