Explore different Java methods for normalizing EOL characters.
Search Results for: apache commons
Obtaining the Last Path Segment of a URI in Java
Explore multiple Java methods, including the URI class, Path class, FilenameUtils, and regular expressions, providing diverse approaches to extract the last path segment from a URI.
Remove Only Trailing Spaces or Whitespace From a String in Java
Learn how to strip the trailing whitespace from the end of a String in Java.
How to Pretty-Print a Map in Java
Learn different approaches for pretty-printing maps in Java.
Storing UUID as Base64 String in Java
Learn how to store UUID as Base64 String using different approaches in Java.
Normalize a URL in Java
Explore different techniques to normalize a URL in Java.
Convert byte[] to Byte[] and Vice Versa in Java
Learn several approaches to converting byte arrays to Byte arrays and vice versa in Java.
Simple Morse Code Translation in Java
Learn how to translate from English to Morse code and vice versa.
Convert Null Value to a Default Value in Java
Learn how to convert null value to a default value in Java.
Convert String to long or Long in Java
In this tutorial, we learn how to convert a String to a long primitive or Long object.
Format LocalDate to ISO 8601 With T and Z
Explore various techniques for formatting a LocalDate to the ISO 8601 format. This format includes the ‘T’ separator and the ‘Z’ indicating UTC time.
Find Files by Extension in Specified Directory in Java
Learn to use core Java and external libraries to search for files in a directory (including sub-directories) that match a specific extension.
Convert an OutputStream to a Byte Array in Java
Learn how to read bytes that were already written to an OutputStream.
Get Index of First Element Matching Boolean Using Java Streams
Learn how to use the Java Stream API and third-party libraries to find the index of the first element in a List that matches a boolean condition.
Convert an XML File to CSV File
Learn how to quickly convert XML files to CSV using Java
Return First Non-null Value in Java
Learn how to retrieve the first non-null value in a collection of item, or sequence of method calls.
Manage Kafka Consumer Groups
Learn about Kafka consumer groups and their role in enhancing scalability by enabling multiple consumers to read from the same topic in parallel.
Convert ResultSet Into Map
Learn to convert a ResultSet in to a HashMap in Java.
Convert File to Byte Array in Java
Learn how to convert a file into a byte array in Java.
Check if a String Contains Only Unicode Letters
Learn how to check if a Java string contains only Unicode letters.