How to Add a UTF-8 BOM in Java
1. Introduction In text encoding, the Byte Order Mark (BOM) is a special marker at the beginning of a file that indicates its byte order and encoding scheme. For UTF-8 encoding, the BOM is a sequence...
View ArticleDisable Hibernate Entity Validation in a Spring Boot Project
1. Overview In Spring Boot projects that use Hibernate, entity validation is typically applied automatically during persistence. While Hibernate’s built-in validation is useful, it can become redundant...
View ArticleExtract IP Address From a String in Java
1. Overview When processing log files or analyzing network traffic data, we often need to extract IP addresses from a given String in Java. In this tutorial, we’ll examine the format of IPv4 addresses...
View ArticleJava Weekly, Issue 568
1. Spring and Java >> Java 24 to Reduce Object Header Size and Save Memory [infoq.com] and >> JEP 493: Linking Run-Time Images without JMODs [openjdk.org] The Java platform is always...
View ArticleConvert JSON to Avro Object
1. Introduction In this tutorial, we’ll explore how to convert JSON data to Apache Avro objects in Java. Avro is a data serialization framework that provides rich data structures and binary data in a...
View ArticleRelationship and Difference Between HAL and HATEOAS
1. Overview Web APIs have rapidly evolved with the rise of REST (Representational State Transfer). REST-based APIs allow developers to build powerful web applications that are modular, scalar, and...
View ArticleSolving Tape Equilibrium Problem in Java
1. Overview In this tutorial, we’ll introduce the tape equilibrium problem and find an efficient solution. This problem is a common interview question. We’ll see that a good way to approach this...
View ArticleAI Image Generation With OpenAI DALL·E 3 in Java
1. Overview Artificial Intelligence is changing the way we build web applications. One exciting application of AI is generating an image from a text-based description. OpenAI’s DALL·E 3 is a popular...
View ArticleLeveraging Generational ZGC for Optimal Temporary Object Management
1. Introduction Managing temporary objects is a crucial performance factor in Java virtual machine optimization. With the introduction of Generational ZGC (Z Garbage Collector) in Java 21 (now...
View ArticleGuide to Using the JMeter Beanshell
1. Introduction In this quick tutorial, we’ll create a test case that uses most of the BeanShell features available in JMeter. Ultimately, we’ll learn how to use the necessary tools to make any test...
View ArticleA Guide to Spring AI Advisors
1. Overview AI-powered applications are our new reality. We’re widely implementing various RAG applications, and prompt APIs, and creating impressive projects using LLMs. With Spring AI, we can...
View ArticleFind Elements with Max Difference in Java Array
1. Introduction In this tutorial, we’ll explore different approaches to finding the maximum difference between any two elements in an array of integers in Java. We’ll demonstrate the problem using an...
View ArticleRemoving All Non-alphabetic Characters From String Array in Java
1. Introduction When working with text data in Java, it’s common to encounter situations where we need to clean strings by removing non-alphabetic characters. This task can be essential for text...
View ArticleMono.fromCallable vs. Mono.justOrEmpty in Spring Reactive
1. Overview In Reactive Programming, handling and transforming data streams is crucial for building responsive applications. Two commonly used methods for creating Mono instances are Mono.fromCallable...
View ArticleDisable Spring Autowiring for a Certain Bean
1. Overview While working on Spring Boot projects, we might face a situation where there is a requirement to disable autowiring of beans. In this tutorial, we’ll learn how to disable autowiring for...
View ArticleAutomated Browser Testing With Selenium
1. Overview Most businesses now rely on websites and web applications, with nearly every organization operating online. Since they connect with end users and customers, websites and web apps must work...
View ArticleIntroduction to LWJGL
1. Overview The Lightweight Java Game Library (LWJGL) is a powerful open-source library that allows Java developers to interact with native APIs for 3D graphics, sound, and input handling. People...
View ArticleHow to Check if All Map Values Are the Same
1. Introduction In this article, we’ll explore various methods for checking if all values in a Java Map are the same. We’ll examine methods such as conventional loops and the Stream API while...
View ArticleDebugging Quarkus Applications
1. Overview In this tutorial, we’ll learn and compare the different options for debugging a Quarkus application. They all have one thing in common: We need a debugging client (usually an IDE) that...
View ArticleHow to Pass Object to Modal Dialog in Thymeleaf?
1. Overview Creating a modal dialog in a web application is a common requirement for user interactions, such as displaying forms, confirming actions, or presenting information. In a Spring application...
View Article