Explore how to convert a String into a String array (String[])
Search Results for: apache commons
Capitalize the First Letter of a String in Java
Learn how to convert a given string’s first character to upper case.
Validating URL in Java
Learn two different methods for validating a URL in Java.
Convert a List to a Comma-Separated String
Learn four ways to convert a List of Strings to a comma-separated String.
Generate the MD5 Checksum for a File in Java
A quick and practical guide to generating the MD5 checksum for files in Java.
Java Weekly, Issue 452
All about the G1 collector this week. Oh, and Java 19 is close – less than a month away. Good summer 🙂
How to Parse an INI File in Java
Look at a couple of libraries that can help us parse INI files in Java
Reading JSON From a URL in Java
How to read JSON from a URL using core java libraries and third-party libraries.
Permutations of a String in Java
Learn how we to easily create permutations in Java using third-party libraries.
Named Placeholders in String Formatting
Learn how to replace parameters in template-based strings from a set of values
How to Check Whether an Integer Exists in a Range with Java
Learn how to check whether an integer exists within the bounds of a range.
Remove Whitespace From a String in Java
Explore common scenarios of removing whitespace from a String in Java
How to Truncate a String in Java
Learn how to truncate a String in Java.
Illegal Character Compilation Error
Learn about the Illegal Character Compilation Error and how to avoid it.
Convert Between boolean and int in Java
Different ways to convert a boolean to an integer.
Convert Byte Size Into a Human-Readable Format in Java
Explore how to convert file size in bytes into a human-readable format in Java
Find the Difference Between Two Sets
Learn how to find the asymmetric and symmetric differences between two Set objects through examples
JDBC Connection Status
In this article, we’ll discuss some aspects of the JDBC connection status.
Computing an X509 Certificate’s Thumbprint in Java
A quick and practical guide to computing an X509 certificate’s thumbprint in Java.
Generating a Java String of N Repeated Characters
Producing a string out of repeating a character or sequence can be done a variety of ways. We look at a few methods, and compare them for readability and efficiency.