Method |
Description |
int codePointAt(int i) |
Returns the Unicode code point at the index i . |
int codePointBefore(int i) |
Returns the Unicode code point at the index which precedes i . |
int codePointCount(int start, int end) |
Returns the number of code points in the portion of invoking String between start and end -1. |
int offsetByCodePoints(int start, int num) |
Returns the index within the invoking string that is num codepoints beyond the starting index start . |
boolean contains(CharSequence str) |
Returns true if the invoking object contains the String specified by str , else it returnsfalse . |
boolean contentEquals(CharSequence str) |
Returns true if the invoking string contains the same String as str , else it returnsfalse . |
boolean contentEquals(StringBuffer str) |
Returns true if the invoking string contains the same String as str , else it returnsfalse . |
static String format(String fmtstr, Object... args) |
Returns a String formatted as specified by fmtstr . |
static String format(Locale loc, String fmtstr, Object... args) |
Returns a String formatted as specified by fmtstr . Formatting is specified by Locale loc . |
boolean isEmpty() |
Returns true if the invoking String contains no characters and is of length zero. |
String replaceFirst(String regExp, String newStr) |
Returns a String in which first substring that matches with regExp is replaced by newStr . |
String replaceAll(String regExp, String newStr) |
Returns a String in which all the substrings that matches with regExp are replaced by newStr . |
String[] split(String regExp) |
Returns an String array that decomposes the invoking string into parts on encountering regular expression specified by regExp . |
String[] split(String regExp, int max) |
Returns an String array that decomposes the invoking string into parts on encountering regular expression specified by regExp. The number of pieces are specified by max . If the max is negative or zero, then the invoking string is fully decomposed. If the max is positive, then the last returned array contains the remaining of the invoking string |
CharSequence subSequence(int start, int stop) |
Returns a substring of the invoking string that begins at start and ends at stop . |