Explore several String composition techniques and understand the idea behind String interpolation.
Search Results for: C plus plus
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.
UUID vs. Sequential ID as Primary Key
A comparison between sequential IDs and UUIDs used as primary keys.
Thread.sleep() vs Awaitility.await()
Learn two different approaches for handling asynchronous operations in Java.
Structured Concurrency in Java 19
Learn about structured concurrency capabilities in Java 19.
Storing Data Triple in a List in Java
Explore how to store triples in a list with examples.
Encoding of URI Variables on RestTemplate
Learn two methods for encoding URI variables on Spring’s RestTemplate.
Difference Between JPA and Spring Data JPA
Learn how Spring Data JPA and JPA both work with some high-level overviews and code snippets.
Guide to Splitting a String by Whitespace in Java
Learn how to split a String by whitespace characters, such as space, tab, or newline, using multiple approaches
Functors in Java
Learn what is a Java Functor.
String Interpolation in Java
Explore the topic of String interpolation in Java.
Finding Max Date in List Using Streams
Learn how to find the maximal date in a list of objects using Streams.
Using Groovy in Spring
Explore the Spring framework’s extensive support for Groovy and learn how to create bean definitions using different approaches.
String Concatenation in Java
Learn how to concatenate strings in Java.
Dispatching Queries in Axon Framework
Learn how to dispatch point-to-point, scatter-gather, and subscription queries in Axon Framework.