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

Image may be NSFW.
Clik here to view.

Full and Partial Text Search in MongoDB

1. Introduction The need for fast and efficient text searches often arises when developing database applications. They should also support full and partial text matches to make these searches even more...

View Article


Image may be NSFW.
Clik here to view.

Using Reactor Mono.cache() for Memoization

1. Overview Optimizing code for performance is a key part of programming, especially when dealing with expensive operations or data retrieval processes.  One effective way of improving performance is...

View Article


Image may be NSFW.
Clik here to view.

Convert an Optional to an ArrayList in Java

1. Introduction Java introduced the Optional class in Java 8 to represent a value that may or may not be present. It helps us to avoid NullPointerException and write more expressive and readable code....

View Article

Image may be NSFW.
Clik here to view.

How to Iterate a List of Maps in Java

1. Introduction In Java programming, dealing with collections is a fundamental task. Lists and Maps are two commonly used collection types, and sometimes, we might need to work with a List of Maps....

View Article

Image may be NSFW.
Clik here to view.

Convert Jackson JsonNode to Typed Collection

1. Overview In this tutorial, we’ll explore different methods of converting Jackson’s raw data type JsonNode into typed Java collections. While we can read JSON using JsonNode itself, converting it to...

View Article


Image may be NSFW.
Clik here to view.

Convert a Queue to a List

1. Overview In this tutorial, we’ll learn how to convert a Queue object into a List in Java. We’ll explain several popular ways of doing this along with their implementations, and we’ll end each...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 541

1. Spring and Java >> This is not your uncle’s Java! Modelling with Java 22 records pattern matching in practice [event-driven.io] Java has come a long way, but it was definitely worth the wait!...

View Article

Image may be NSFW.
Clik here to view.

Perform Action Only if All Optionals Are Available

1. Introduction Null references and values have tormented programmers for years. Tony Hoare, the creator of null references, famously called his invention a “billion-dollar mistake.” Java, in...

View Article


Image may be NSFW.
Clik here to view.

How to Convert Between ZonedDateTime and Date in Java

1. Overview When working with Java applications that handle date and time, understanding how to convert between different types is often essential. In this tutorial, we’ll explore how to convert...

View Article


Image may be NSFW.
Clik here to view.

Introduction to SSHJ

1. Overview SSHJ is an open-source Java library that uses SSH protocols for secure communication with remote servers. In this article, we’ll go through the basic functionality of the SSHJ library. 2....

View Article

Image may be NSFW.
Clik here to view.

Convert InputStream to Stream in Java

1. Introduction When dealing with input data across different sources in Java, we sometimes encounter situations where we must handle data from an InputStream by converting it into a...

View Article

Image may be NSFW.
Clik here to view.

Configuring Retry Policy for gRPC Request

1. Overview In this tutorial, we’ll discuss the various ways to implement retry policies in gRPC, a remote procedure call framework developed by Google. gRPC is interoperable in many programming...

View Article

Image may be NSFW.
Clik here to view.

Get the First and the Last Elements From an Array in Java

1. Overview When we work with Java, dealing with arrays is a fundamental task. We often need to access the first and last elements of an array. In this quick tutorial, we’ll explore how to efficiently...

View Article


Image may be NSFW.
Clik here to view.

Introduction to JavaParser

1. Introduction In this article, we’re going to have a look at the JavaParser library. We’ll see what it is, what we can do with it, and how to use it. 2. What Is JavaParser? JavaParser is an...

View Article

Image may be NSFW.
Clik here to view.

Finding the Second Smallest Integer in an Array in Java

1. Introduction In this tutorial, we’ll explore different approaches to finding the second smallest element in an array using Java. 2. Problem Statement Given an array of integers, the task is to find...

View Article


Image may be NSFW.
Clik here to view.

Check if a Number Is Power of 2 in Java

1. Introduction A power of 2 is a number that can be expressed as 2 raised to some integer power, such as 2, 4, 8, 16, and so on. In Java, there are several ways to determine if a given number is a...

View Article

Image may be NSFW.
Clik here to view.

Monads in Java

1. Overview In this tutorial, we’ll learn about monads, and how they can help us deal with effects. We’ll learn about the essential methods enabling us to chain monads and operations: map() and...

View Article


Image may be NSFW.
Clik here to view.

Supply Enum Value to an Annotation From a Constant in Java

1. Introduction In this tutorial, we’ll explore the possibilities within Java for supplying an enum value from a constant to an annotation. To understand the main drivers of the proposed design...

View Article

Image may be NSFW.
Clik here to view.

Apache Commons Tutorial

Learn how to work with Apache Commons projects.        

View Article

Image may be NSFW.
Clik here to view.

Logging SQL Queries to the Console in Mybatis

1. Overview MyBatis is a popular Java-based persistence framework that simplifies database operations by mapping SQL queries to Java methods. When developing applications using MyBatis, it’s often...

View Article
Browsing all 4535 articles
Browse latest View live