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

Image may be NSFW.
Clik here to view.

How to Collect All Results and Handle Exceptions With CompletableFuture in a...

1. Overview Java 8’s CompletableFuture is well-suited to handling asynchronous computation. For instance, a web client may employ CompletableFuture when making a server call. It’s easy to get started...

View Article


Image may be NSFW.
Clik here to view.

Preventing Gson from Expressing Integers as Floats

1. Introduction The Gson library developed by Google is quite a good choice for serialization and deserialization of Java objects to and from JSON format. Besides, we typically come across the problem...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 529

1. Spring and Java >> Emulating C# LINQ in Java using Code Reflection [openjdk.org] Java’s LINQ Inspiration: unleashing Code Reflection Power, Emulating the LINQ in Java. >> FetchType:...

View Article

Image may be NSFW.
Clik here to view.

Mask an Email Address and Phone Number in Java

1. Introduction Privacy and data security are important elements of software development. Masking sensitive details such as the user’s email address and phone number is usually one procedure used to...

View Article

Image may be NSFW.
Clik here to view.

Logging With AOP in Spring

1. Overview We often use logging to document meaningful steps and valuable information during the program execution. It allows us to record data we can use later to debug and analyze the code....

View Article


Image may be NSFW.
Clik here to view.

View Kafka Headers in Java

1. Introduction Apache Kafka is a distributed streaming platform that allows us to publish and subscribe to streams of records, often referred to as messages. Additionally, Kafka headers provide a way...

View Article

Image may be NSFW.
Clik here to view.

How To Use findBy() With Multiple Columns in JPA

1. Introduction Spring Dat;u JPA provides a query derivation feature, using which we can derive queries automatically by just following the method name conventions. In this article, we’ll use the query...

View Article

Image may be NSFW.
Clik here to view.

Add Camel Route at Runtime in Java

1. Overview Apache Camel is a Java framework that makes it easy to implement various Enterprise Integration Patterns (EIPs) for providing solutions to enterprise integration. One of the common tasks in...

View Article


Image may be NSFW.
Clik here to view.

Understanding Kafka InstanceAlreadyExistsException in Java

1. Introduction Apache Kafka is a powerful distributed streaming platform that is widely used for building real-time data pipelines and streaming applications. However, Kafka may encounter various...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 530

1. Spring and Java >> Pattern match Optional in Java 21 [joda.org] Exploring Optional Pattern Matching in Java 21: a deep dive into the latest features. >> When should a compiler expand...

View Article

Image may be NSFW.
Clik here to view.

Solving Rod Cutting Problem in Java

1. Overview The Rod Cutting Problem is a classic optimization problem that involves finding the best way to cut a rod into pieces to maximize the total revenue. In this tutorial, we’ll understand the...

View Article

Image may be NSFW.
Clik here to view.

Find The Largest Number in a String

1. Introduction Often, when working with several programming scenarios, there will be strings that contain numbers, and it might be necessary to find the greatest among these values. In this tutorial,...

View Article

Image may be NSFW.
Clik here to view.

CompletableFuture runAsync() vs. supplyAsync() in Java

1. Introduction Java’s CompletableFuture framework provides powerful asynchronous programming capabilities, facilitating the execution of tasks concurrently. In this tutorial, we’ll delve into two...

View Article


Image may be NSFW.
Clik here to view.

A Guide to etcd

1. Introduction In the complex world of distributed systems, ensuring efficient data management is crucial. Distributed reliable key-value stores play a pivotal role in maintaining data consistency and...

View Article

Image may be NSFW.
Clik here to view.

Check if a String Is Equal to Its Mirror Reflection

1. Overview When we work in Java, String manipulation and comparison are everyday tasks. In this quick tutorial, let’s delve into an interesting problem: checking if a String equals its mirror...

View Article


Image may be NSFW.
Clik here to view.

Get a Range of Items from a Stream in Java

1. Overview Introduced in Java 8, the Stream API has revolutionized how developers work with object collections. Streams provide powerful operations to process and manipulate data concisely and...

View Article

Image may be NSFW.
Clik here to view.

Calling Custom Database Functions With JPA and Spring Boot

1. Overview Database functions are essential components in database management systems, enabling the encapsulation of logic and execution within the database. They facilitate efficient data processing...

View Article


Image may be NSFW.
Clik here to view.

Difference Between thenApply() and thenApplyAsync() in CompletableFuture

1. Introduction In the CompletableFuture framework, thenApply() and thenApplyAsync() are crucial methods that facilitate asynchronous programming. In this tutorial, we’ll delve into the differences...

View Article

Image may be NSFW.
Clik here to view.

Check if Two Strings Are Rotations of Each Other

1. Overview In this tutorial, we’ll learn how to check if a string is a rotation of another string. We’ll briefly discuss what string rotation is. Then, we’ll look at some algorithms to solve the...

View Article

Image may be NSFW.
Clik here to view.

Check if String is Base64 Encoded

1. Introduction In Java programming, we quite often work with data encoding and decoding. Additionally, Base64 encoding is popular and used to convert binary data into ASCII text format. In this...

View Article
Browsing all 4535 articles
Browse latest View live


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