A quick and practical guide to converting HashMap.toString() to HashMap in Java.
Search Results for: split string
How to Split an Integer Number Into Digits in Java
Explore various approaches to splitting an integer number into its constituent digits using Java.
Converting String or String Array to Map in Java
A quick and practical guide to converting String or String Array to Map in Java.
How to Take Input as String With Spaces in Java Using Scanner?
Learn how to read values containing spaces from a Scanner through examples.
Find the Longest Word in a Given String in Java
Learn how to find the longest words in a sentence.
How to Persist a List of String in JPA?
Explore what kind of possibilities there are in JPA to store a list of strings of an entity.
Find the First Embedded Occurrence of an Integer in a Java String
Learn different techniques to extract the first embedded integer from a String.
Convert String to String Array
Explore how to convert a String into a String array (String[])
Capitalize the First Letter of a String in Java
Learn how to convert a given string’s first character to upper case.
How to Truncate a String in Java
Learn how to truncate a String in Java.
How to Split a Stream into Multiple Streams
Sometimes we need to process the elements of a stream in multiple ways. We explore a few options for splitting the stream, or running the stream over several terminal operations.
Get the Last Word of a String
A quick and practical overview of getting the last word of a String in Java.
Count Spaces in a Java String
Learn various ways to count how many spaces are in a string through examples
Convert a String to Camel Case
Camel case text conversion can be achieved by using regular expressions, or via some library functions. We look at a couple of implementations we can add to our own code, and a couple of examples from libraries.
Fast Pattern Matching of Strings Using Suffix Tree in Java
Learn about pattern matching of strings and how we can make it faster using a suffix tree
Breaking YAML Strings Over Multiple Lines
Learn how to break YAML strings over multiple lines
Get Substring from String in Java
The practical ways of using the useful substring functionality in Java – from simple examples to more advanced scenarios.
Counting Words in a String with Java
Learn several ways to count words in a Java String.
How to Reverse a String in Java
Explore different ways of reversing a String in Java.
Java Multi-line String
While waiting for JDK 13, what are other ways that Java supports multi-line strings?