Quantcast
Channel: Baeldung
Browsing all 4536 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Git Integration in IntelliJ IDEA

1. Introduction IntelliJ IDEA offers extensive support for working with the Git version control system. In this tutorial, we’ll look at a selection of features that the IDE provides. Since regular...

View Article


Image may be NSFW.
Clik here to view.

Check if Two Strings Are Permutations of Each Other in Java

1. Overview A permutation or anagram is a word or phrase formed by rearranging the letters of a different word or phrase. In other words, a permutation contains the same characters as another string,...

View Article


Image may be NSFW.
Clik here to view.

Understanding Maven Dependency Graph or Tree

1. Overview Working on large Maven projects can be intimidating, as can keeping track of all the dependencies between modules and libraries and resolving conflicts between them. In this tutorial, we’ll...

View Article

Image may be NSFW.
Clik here to view.

Add an Aggregation to an Elasticsearch Query

1. Overview Elasticsearch is a search and analytics engine suitable for scenarios requiring flexible filtering. Sometimes, we need to retrieve the requested data and its aggregated information. In this...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 542

1. Spring and Java >> Optimizing JVM for the Cloud: Strategies for Success [infoq.com] The JVM was never designed with the cloud in mind, but it can surely be optimized really well for it...

View Article


Image may be NSFW.
Clik here to view.

How to Make Multiple REST Calls in CompletableFuture

1. Introduction When creating software capabilities, an everyday activity is retrieving data from different sources and aggregating it in the response. In microservices, those sources are often...

View Article

Image may be NSFW.
Clik here to view.

The Difference Between doAnswer() and thenReturn() in Mockito

1. Overview Mockito is a widely used unit testing framework for Java applications. It provides various APIs to mock the behavior of objects. In this tutorial, we’ll explore the usage of doAnswer() and...

View Article

Image may be NSFW.
Clik here to view.

How to Set JVM Arguments in IntelliJ IDEA?

1. Overview IntelliJ IDEA is among the most popular and powerful IDEs for developing software in various programming languages. In this tutorial, we’ll learn how to configure JVM arguments in IntelliJ...

View Article


Image may be NSFW.
Clik here to view.

Extract Text From a HTML Tag with Regex

1. Introduction When working with HTML content in Java, extracting specific text from HTML tags is common. While using regular expressions (regex) for parsing HTML is generally discouraged due to its...

View Article


Image may be NSFW.
Clik here to view.

How to Compile Java to WASM (Web Assembly)

1. Overview In the fast-paced world of web development, the introduction of WASM (WebAssembly) has presented developers with new possibilities. It allows them to leverage the speed and adaptability of...

View Article

Image may be NSFW.
Clik here to view.

Disable Logging From a Specific Class in Logback

1. Overview Logging is a critical component of any application, offering insights into its behavior and health. However, excessive logging can clutter output and obscure useful information, especially...

View Article

Image may be NSFW.
Clik here to view.

Fault Tolerance in Java Using Failsafe

1. Introduction In this article, we’re going to explore the Failsafe library and see how it can be incorporated into our code to make it more resilient to failure cases. 2. What Is Fault Tolerance? No...

View Article

Image may be NSFW.
Clik here to view.

Add Global Exception Interceptor in gRPC Server

1. Overview In this tutorial, we’ll examine the role of interceptors in gRPC server applications to handle global exceptions. Interceptors can validate or manipulate the request before it reaches the...

View Article


Image may be NSFW.
Clik here to view.

Mocking Protected Method in Java

1. Overview Mocking protected method in Java is similar to mocking a public one, with one caveat: visibility of this method in the test class. We have visibility of protected methods of class A from...

View Article

Image may be NSFW.
Clik here to view.

Difference Between Optional.of() and Optional.ofNullable() in Java

1. Overview In Java, a reference may or may not point to an object in memory. In other words, a reference can be null. As a result, this gives rise to the possibility of a NullPointerException being...

View Article


Image may be NSFW.
Clik here to view.

How to Check if Optional Contains Value Equal to T Object

1. Overview Optional is a class that was introduced in Java 8 as part of the java.util package. It serves as a container that may or may not contain a non-null value. Optional can help us handle null...

View Article

Image may be NSFW.
Clik here to view.

Looking for a Backend Java/Spring Developer with Integration Experience...

  About Us Baeldung is a learning and media company with a focus on the programming space. We’re a flexible, entirely remote team. Description We’re looking for a Java developer with integration...

View Article


Image may be NSFW.
Clik here to view.

Finding Minimum and Maximum in a 2D Array

1. Overview In this tutorial, we’ll discuss two techniques for finding the minimum and maximum values within a 2D array using Java. A 2D array is an arrangement of elements structured like a grid. It’s...

View Article

Image may be NSFW.
Clik here to view.

Finding the Next Higher Number With the Same Digits

1. Introduction In this tutorial, we’ll learn how to find the next higher number with the same set of digits as the original number in Java. This problem can be solved by using the concept of...

View Article

Image may be NSFW.
Clik here to view.

Difference Between Iterator.forEachRemaining() and Iterable.forEach()

1. Introduction The Iterator and Iterable interfaces are fundamental constructs for working with collections in Java. Practically, each interface provides methods for traversing elements, but they have...

View Article
Browsing all 4536 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>