Category: Java String Tutorials
Java String Tutorials

Java String.valueOf()
The method valueOf() has several overloads that accept one parameter [...]

Java String.trim()
The method trim() removes any whitespace at the beginning and at the [...]

Java String.toUpperCase()
The method toUpperCase() converts all characters of a String to uppe [...]

Java String.toLowerCase()
The method toLowerCase() converts all characters of a String to lowe [...]

Java String.substring()
The method substring() comes with two signatures. If we pass the beg [...]

Java String.subSequence()
The method subSequence() obtains a part of a String given the starti [...]

Java String.startsWith()
The method startsWith() is a convenience method that checks whether [...]

Java String.split()
The method split() splits a String into multiple Strings given the d [...]

Java String.replaceAll()
The method replaceAll() replaces all occurrences of a String in anot [...]

Java String.replace()
The method regionMatches() checks if two String regions are equal.
H [...]