A quick and practical guide to splitting Java String into key-value pairs.
Search Results for: split string
Split a String Into Digit and Non-Digit Substrings
Explore different approaches and techniques for breaking an input string into a string array or list containing digit and non-digit string elements in the original order
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
Split a String Every n Characters in Java
Learn several ways to split a string after every n characters in Java.
Ignoring Commas in Quotes When Splitting a Comma-separated String
Learn various approaches for ignoring commas in quotes when splitting a comma-separated String.
Split a String Only on the First Occurrence of Delimiter
Learn two approaches to split a String only on the first occurrence of a delimiter in Java.
Splitting a Java String by Multiple Delimiters
Learn different options for splitting an input string by multiple delimiters using regular expressions, Google Guava, and Apache Commons
Split a String in Java and Keep the Delimiters
Learn how to split a string in such a way that the delimiters are part of the result
Split Java String by Newline
Learn different ways to split a Java String by newline characters
Java String.split()
A quick example and explanation of the split() API of the standard String class in Java.
Split a String in Java
The article discusses several alternatives for splitting a String in Java.
Find The Largest Number in a String
Explore various ways of properly identifying and extracting the greatest numeric value from a given string in Java.
Validate if a String Is a Valid Geo Coordinate
A short guide on checking if a Java String is a valid Geo Coordinate.
Remove Characters From a String That Are in the Other String
Explore three approaches to removing characters from one string if they’re present in another.
Java’s String.length() and String.getBytes().length
Learn how character encoding works and explore why String.length() and String.getBytes().length can produce different results.
Rotating a Java String By n Characters
Explore two different approaches to rotating a string by n characters.
Read a File and Split It Into Multiple Files in Java
Learn how to split large files into small files by size and the specified number of files.
Convert a String to a List of Characters in Java
Learn how to convert a string into a list of charactеrs in Java.
Splitting Streams in Kafka
Explore how to dynamically route messages in Kafka Streams.
Capitalize the First Letter of Each Word in a String
Learn how to capitalize the initial character of each word in a Java string.