Discover when casting to String or using String.valueOf() is most useful.
Also find me here:
Baeldung Editor
Liam Williams
Liam is a freelance software consultant based in London, UK. Liam has over 15 years of experience with JVM languages and test automation. Expert at developing high-quality software solutions that leverage appropriate automation techniques.
Here's what I've reviewed (so far):
Baeldung on Java
- All
- Testing (2)
- Java Numbers (2)
- Java IO (2)
- Java (2)
- Data (2)
- Architecture (2)
- Spring Cloud (1)
- Java Web (1)
- Java String (1)
- Java Streams (1)
- Java Concurrency (1)
- Java Collections (1)
Introduction to Spring Cloud AWS 3.0 – SQS Integration
Filed under Spring Cloud
Learn how to use AWS SQS using the Spring Cloud AWS SQS 3.0 integration.
Sending Data to a Specific Partition in Kafka
Filed under Data
Learn different techniques for sending data to specific partitions in Kafka.
Convert an OutputStream to a Byte Array in Java
Filed under Java IO
Learn how to read bytes that were already written to an OutputStream.
Differences Between Entities and DTOs
Filed under Architecture
Learn about the conceptual differences between an entity and a DTO by example in Java.
How to Effectively Unit Test CompletableFuture
Filed under Java Concurrency, Testing
Learn how to unit test a CompletableFuture using black-box and state-based testing techniques.
Generating Unique Positive long Using UUID in Java
Filed under Java Numbers
Learn how to use a UUID to generate a unique numeric value.
Return First Non-null Value in Java
Filed under Java Collections
Learn how to retrieve the first non-null value in a collection of item, or sequence of method calls.
Ensuring Message Ordering in Kafka: Strategies and Configurations
Filed under Architecture, Data
Learn how to ensure that messages are sent and received in the same order with Kafka.
Introduction to LangChain
Filed under Java
Learn how to work with large language models in Java with LangChain.
How to Mock Environment Variables in Unit Tests
Filed under Testing
Learn how to write unit tests for code that uses environment variables with these Java testing libraries.
Converting from float to BigDecimal in Java
Filed under Java Numbers
Learn how to convert from a Java IEEE 754 float to BigDecimal.
Get File Extension From MIME Type in Java
Filed under Java IO
Learn how to use Java to determine file extensions for IANA media types.
How to Use Conditional Mapping With MapStruct
Filed under Java
Learn how to set fields based on conditions when mapping between Java bean types with MapStruct.
Set a Parameter in an HttpServletRequest in Java
Filed under Java Web
Learn how to modify a Servlet API request to set parameters that were not in the original HTTP request.
Aggregate Runtime Exceptions in Java Streams
Filed under Java Streams
Learn about different ways to handle exceptions in Java stream pipelines using aggregation.
Baeldung on Linux
- All
- Administration (5)
- Scripting (3)
- Files (2)
- Web (1)
- Processes (1)
- Installation (1)
- Filesystems (1)
- File Permissions (1)
Guide to Linux basename Command with Examples
Learn about how to use the basename command to determine the file or folder name for one or more paths.
How to Remove All GUI Packages in Debian
Filed under Administration
Learn how to use the APT package manager to remove all GUI packages in Debian Linux.
How to Optimize Linux for SSD
Filed under Administration, Filesystems
Learn how to configure Linux for improved SSD performance and durability.
How Much RAM Does the Linux Kernel Use
Filed under Administration
Learn how to check how much memory is currently in use by the kernel.
Guide to the getline Function in AWK
Learn how to use the getline function in AWK to read from files and piped external commands.
How to Check Temperature of the Video Card
Filed under Administration
Learn how to check the GPU temperature from the command line.
How to Move a File Without Preserving Permissions
Filed under File Permissions
Learn how to move a file to another location without preserving the original permissions.
Comparing nginx’s core, full, extras, and light Packages
Filed under Installation, Web
Learn how to choose the right nginx package for your Ubuntu server installation.
How to Extract the First Word of a String in Bash
Filed under Scripting
Learn how to extract the first word of a multi-word string when using the Bash shell.
Starting Applications Automatically After Reboot Using PM2
Filed under Administration, Processes
Learn how to automatically start an application process on system startup with PM2.
Baeldung on Computer Science
- All
- Latex (1)
Colorful Titles in LaTeX
Filed under Latex
Learn how to render LaTeX headings and titles in color.
Baeldung on Kotlin
- All
- Kotlin Dates (2)
- Kotlin Collections (2)
- Persistence (1)
- Kotlin Web (1)
- Kotlin Strings (1)
- Kotlin Server-Side (1)
- Kotlin Basics (1)
Intro to Ktorm: ORM Framework for Kotlin
Filed under Persistence
Learn how to use Ktorm to map a relational database to a Kotlin object model.
How to Calculate the Difference Between Two Time Periods in Kotlin
Filed under Kotlin Dates
Learn how to find the difference between two durations or time points in Kotlin.
How to Start a for Loop From a Given Index in Kotlin
Filed under Kotlin Basics, Kotlin Collections
Learn how to iterate over the elements in a collection or range, starting from a specific index.
An Introduction to Running GraphQL in Kotlin and Ktor
Filed under Kotlin Server-Side, Kotlin Web
Learn how to write a GraphQL API client and server in Kotlin.
How to Convert Milliseconds to Minutes and Seconds in Kotlin
Filed under Kotlin Dates
Learn how to convert between units of duration in Kotlin.
Removing an Entry From a Kotlin Map While Iterating Over It
Filed under Kotlin Collections
Learn how to remove a map entry using on a condition on the key during iteration.
How to Convert String to String Array of Words in Kotlin
Filed under Kotlin Strings
Learn how to convert a string to an array of words in Kotlin.