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

Image may be NSFW.
Clik here to view.

How to Pass Method as Parameter in Java

1. Introduction In Java, we can pass a method as a parameter to another method using functional programming concepts, specifically using lambda expressions, method references, and functional...

View Article


Image may be NSFW.
Clik here to view.

Using MapStruct With Lombok

1. Overview Project Lombok is a library that helps with boilerplate code, allowing us to focus more on the core application logic. Similarly, MapStruct is another library that helps with boilerplate...

View Article


Image may be NSFW.
Clik here to view.

Avoid Inserting Duplicates in ArrayList in Java

1. Overview In this short tutorial, we’ll learn how to avoid inserting duplicate values when using ArrayList in Java. First, we’ll see how to do this using ready-to-use JDK classes. Then, we’ll discuss...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 546

1. Spring and Java >> Encodings for flattened heap values [cr.openjdk.org] Exploring the complexities and challenges of flattening data structures on the heap as part of Project Valhalla >>...

View Article

Image may be NSFW.
Clik here to view.

How to Remove Digits From a String

1. Overview In this tutorial, we’ll explore various methods to remove digits from Strings. We’ll start with regular expressions, demonstrating how to utilize the replaceAll() method of the String class...

View Article


Image may be NSFW.
Clik here to view.

Integration Testing Spring WebClient Using WireMock

1. Introduction Spring WebClient is a non-blocking, reactive client for performing HTTP requests, and WireMock is a powerful tool for simulating HTTP-based APIs. In this tutorial, we’ll see how we can...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Apache Pinot

1. Introduction Apache Pinot, developed originally by LinkedIn, is a real-time distributed OLAP (Online Analytical Processing) datastore designed to deliver low latency and high throughput for...

View Article

Image may be NSFW.
Clik here to view.

Run Queries From a File in H2 Database

1. Overview In this tutorial, we’ll explore how to run a script from a file for H2 databases. H2 is an open-source Java database that can be embedded in Java applications or run as a separate server....

View Article


Image may be NSFW.
Clik here to view.

Finding the Mode of Integers in an Array in Java

1. Overview In this article, we’ll explore how to find the mode of integers in an array using Java. When working with datasets in Java, we might often need to find statistical measures such as mean,...

View Article


Image may be NSFW.
Clik here to view.

Zero-Downtime Web Application Upgrade in Tomcat With Parallel Deployment

1. Overview Apache Tomcat, or Tomcat for short, is an open-source implementation of Jakarta Servlet specification. It functions as a web server that receives HTTP or WebSocket requests and invokes the...

View Article

Image may be NSFW.
Clik here to view.

Set Format for Instant Using ObjectMapper

1. Introduction Formatting dates consistently is essential for maintaining clarity and compatibility in data representation, especially when working with JSON. In this tutorial, we’ll explore various...

View Article

Image may be NSFW.
Clik here to view.

Detecting Compromised Passwords Using Spring Security

1. Overview When building web applications that deal with sensitive data, it’s important to ensure the security of user passwords. One important aspect of password security is checking whether a...

View Article

Image may be NSFW.
Clik here to view.

Convert int to Unsigned byte in Java

1. Introduction In Java, the byte type is a signed 8-bit integer. This means it can hold values from -128 to 127. However, there are situations where we might need to work with bytes as if they were...

View Article


Image may be NSFW.
Clik here to view.

Properties in BeanFactoryPostProcessor

1. Overview In Spring, properties can be injected directly into our beans using the @Value annotation, accessed through the Environment abstraction, or be bound to structured objects through...

View Article

Image may be NSFW.
Clik here to view.

Find the Index of the Largest Value in an Array

1. Overview When working with arrays in Java, one of the everyday tasks we might encounter is finding the index of the largest value in an array. In this quick tutorial, we’ll walk through several...

View Article


Image may be NSFW.
Clik here to view.

Split a String Based on the Last Occurrence of a Character

1. Overview String manipulation is a crucial skill in Java programming. One common task is splitting a String based on the last occurrence of a specific character. In this quick tutorial, we’ll explore...

View Article

Image may be NSFW.
Clik here to view.

Find the Closest Number to Zero in a Java Array

1. Overview In this tutorial, we’ll delve into the problem of finding the closest number to zero within a Java array. For example, given the array, [1, -3, 2, -2, 4], the number closest to zero is 1....

View Article


Image may be NSFW.
Clik here to view.

Fixing the “Could Not Determine Recommended JdbcType for Class” Error in JPA

1. Introduction In this tutorial, we’ll explore the causes of the “could not determine recommended JdbcType for class” error in Hibernate and discuss how to resolve it. 2. Common Causes When we...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 547

1. Spring and Java >> Debugger.godMode() – Hacking a JVM application with the debugger [foojay.io] Using a debugger to find out how an application works under the hood. >> Hibernate WITH...

View Article

Image may be NSFW.
Clik here to view.

How to Pass JVM Arguments via Maven

1. Overview In this tutorial, we’ll run Java code through Maven with JVM arguments. We’ll explore how to apply those arguments to the build globally and then focus on applying them to specific Maven...

View Article
Browsing all 3605 articles
Browse latest View live


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