This is a complete guide to Java String, StringBuilder, and StringBuffer methods/APIs. The source code examples of this guide are well tested with our local development environment and you can use these examples as bug-free. You can learn more on Complete Core Java Developer Guide.
In this guide, you will learn basic concepts, APIs/methods, coding, programs and all String operations with examples.
In this guide, you will learn basic concepts, APIs/methods, coding, programs and all String operations with examples.
- Java String Class API Guide
- The String Constructors
- String charAt(int index)
- String codePointAt(int index)
- String codePointBefore(int index)
- String compareTo(String anotherString)
- String compareToIgnoreCase(String str)
- String concat(String str)
- String contains(CharSequence s)
- String contentEquals()
- String endsWith(String suffix)
- String equals() and equalsIgnoreCase()
- String getBytes()
- String getChars()
- String hashCode()
- String indexOf()
- String intern()
- String lastIndexOf()
- String length()
- String regionMatches()
- String replace()
- String replaceAll(String regex, String replacement)
- String replaceFirst(String regex, String replacement)
- String split() methods
- String startsWith() methods
- String subSequence(int beginIndex, int endIndex)
- String substring() methods
- String toCharArray()
- String toLowerCase() methods
- String toString()
- String toUpperCase() methods
- String trim()
- String valueOf()
</li>
- Guide to Java String Constant Pool
- Guide to String Best Practices in Java (Best Practice)
- String Special Operations with Examples
- String Comparison Methods with Examples
- String Methods for Character Extraction
- String Searching Methods with Examples
- String Modifying Methods with Examples
- Java StringBuffer Class API Guide
- Java StringBuilder Class API Guide