Learn how to strip the trailing whitespace from the end of a String in Java.
Search Results for: C plus plus
Mask an Email Address and Phone Number in Java
Explore masking of sensitive information for protecting user privacy and adhering to data security regulations.
Translating Space Characters in URLEncoder
Learn the fundamentals of URL encoding in Java focusing on the URLEncoder class for encoding spaces into URL-safe formats.
N+1 Problem in Hibernate and Spring Data JPA
Explore a common N+1 problem while using Spring JPA and Hibernate.
List vs. Set in @OneToMany JPA
Explore the differences between Lists and Sets in the context of entity relationships through examples.
Setting up and Using Spock With Gradle
Learn how to configure Gradle dependencies to write specification tests with Spock and Spring.
Introduction to Apache Calcite
Learn about Apache Calcite, a powerful data management framework.
Read Multiple Messages with Apache Kafka
Explore how the Kafka Consumer retrieves messages from the broker.
Recursively Sum the Integers in an Array
Explore two approaches to recursively summing integers in an array and analyze their performance using the JMH tool.
Create Table Using ASCII in a Console in Java
Learn how to use the Java standard API and a third-party API to create a table using ASCII characters in Java.
Sharing Memory Between JVMs
Learn how to use share a memory area between two JVMs running on the same machine.
Validate Boolean Type in Spring Boot
This tutorial teaches various ways to validate a boolean in Spring Boot.
Finding the Square Root of a BigInteger in Java
Learn three approaches to calculating the square root of a big number in Java.
String Templates in Java 21
Explore several String composition techniques and understand the idea behind String interpolation.
Add Minutes to a Time String in Java
Learn how to add minutes to a time in the string format using the legacy Date API and the Date Time API.
How to Use Conditional Mapping With MapStruct
Learn how to set fields based on conditions when mapping between Java bean types with MapStruct.
Difference Between Instant and LocalDateTime
Learn about the difference between the Instant and LocalDateTime classes introduced with Java 8.
Adding One Month to Current Date in Java
In this short tutorial, we discuss various methods of adding one month to the current date in Java. We cover using core Java methods as well as popular external libraries such as Joda-Time and Apache Commons Lang3.
Remove Punctuation From a String in Java
Learn how to remove punctuation from a string using the standard String.replaceAll() method.
Parsing Date Strings with Varying Formats
Explore strategies for parsing multiple date formats at once.