java. lang String instructs an empty string String( value: String) Constructs a string with the specified string literal value Constructs a string with the specified character array harAt(index: int ): char Returns the character at the specified index from this string mare To(anotherString: String ):int ompares this string with another string ompare Tolgnore Case(anotherString: String): int Compares this string with another string ignoring case at(another String: String): String ncat this string with another string nds With(suffix: String): boolean Returns true if this string ends with the specified suffix uals(another String: String): boolean returns true if this string is equal to anther string qualslgnore Case(another String: String): boolean Checks if this string equals anther string ignoring case Chars(int srcBegin, int srcEnd, char[] dst, int Copies characters from this string into the destination character h: int): int Returns the index of the first occurrence of indexOf(ch: int, fromIndex: int) int Returns the index of the first occurrence of ch after fromIndex ndexofstr; String): int eturns the index of the first occurrence of str ndexOfstr: String, fromIndex: int ) int Returns the index of the first occurrence of str after fromlndey lastlndexof(ch: int): int Returns the index of the last occurrence of ch Returns the index of the last occurrence of ch before fromIndex lastIndexof(str: String): int Returns the index of the last occurrence of str lastIndexOf(str: String, fromIndex: int ) int Returns the index of the last occurrence of str before fromlnd region Matches(toffset: int, other: String, offset: s true if the specified subregion of thi int, len: int): boolean matches the specified subregion of the string argur Int Returns the number of characters in this string place(old Char:char,newChar:char): String Returns a new string with old Char replaced by newChar ith(prefix: String ): boolean Returns true if this string starts with the specified prefi ubstring(beginIndex: int): String Returns the substring from beginIndex ubString(beginIndex: int, endIndex: int ) String Returns the substring from beginIndex to endIndex-1 CharArray(: charl Returns a char array consisting characters from this string LowerCase(: String Returns a new string with all characters converted to lowercase Returns a new string with itself Upper Case(): String Returns a new string with all characters converted to uppercase mo: String Returns a string with blank characters trimmed on both sides copy ValueOf(data: charl): String Returns a new string consisting of the char array data alueOf data: char): String Same as copy ValueOfidata: charl): String valueofid: double): String eturns a string representing the double value valueof: float): String Returns a string representing the float value Returns a string representing the int value Returns a string representing the long valueLiang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved. 0-13-148952-6 4 java.lang.String +String() +String(value: String) +String(value: char[]) +charAt(index: int): char +compareTo(anotherString: String): int +compareToIgnoreCase(anotherString: String): int +concat(anotherString: String): String +endsWith(suffix: String): boolean +equals(anotherString: String): boolean +equalsIgnoreCase(anotherString: String): boolean +getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin): void +indexOf(ch: int): int +indexOf(ch: int, fromIndex: int): int +indexOf(str: String): int +indexOf(str: String, fromIndex: int): int +lastIndexOf(ch: int): int +lastIndexOf(ch: int, fromIndex: int): int +lastIndexOf(str: String): int +lastIndexOf(str: String, fromIndex: int): int +regionMatches(toffset: int, other: String, offset: int, len: int): boolean +length(): int +replace(oldChar: char, newChar: char): String +startsWith(prefix: String): boolean +subString(beginIndex: int): String +subString(beginIndex: int, endIndex: int): String +toCharArray(): char[] +toLowerCase(): String +toString(): String +toUpperCase(): String +trim(): String +copyValueOf(data: char[]): String +valueOf(c: char): String +valueOf(data: char[]): String +valueOf(d: double): String +valueOf(f: float): String +valueOf(i: int): String +valueOf(l: long): String Constructs an empty string Constructs a string with the specified string literal value Constructs a string with the specified character array Returns the character at the specified index from this string Compares this string with another string Compares this string with another string ignoring case Concat this string with another string Returns true if this string ends with the specified suffix Returns true if this string is equal to anther string Checks if this string equals anther string ignoring case Copies characters from this string into the destination character array Returns the index of the first occurrence of ch Returns the index of the first occurrence of ch after fromIndex Returns the index of the first occurrence of str Returns the index of the first occurrence of str after fromIndex Returns the index of the last occurrence of ch Returns the index of the last occurrence of ch before fromIndex Returns the index of the last occurrence of str Returns the index of the last occurrence of str before fromIndex Returns true if the specified subregion of this string exactly matches the specified subregion of the string argument Returns the number of characters in this string Returns a new string with oldChar replaced by newChar Returns true if this string starts with the specified prefix Returns the substring from beginIndex Returns the substring from beginIndex to endIndex-1. Returns a char array consisting characters from this string Returns a new string with all characters converted to lowercase Returns a new string with itself Returns a new string with all characters converted to uppercase Returns a string with blank characters trimmed on both sides Returns a new string consisting of the char array data Returns a string consisting of the character c Same as copyValueOf(data: char[]): String Returns a string representing the double value Returns a string representing the float value Returns a string representing the int value Returns a string representing the long value