charAt(int index) |
Char |
Returnschar Value. |
equals(Object anObject) |
Boolean |
Compares the string with the specified object. |
getBytes() |
Byte [] |
Use the default Character Set of the platformString Encode the data as a byte sequence and store the results in a new byte array. |
getBytes(String charsetName) |
Byte [] |
Use the specified character setString Encode the data as a byte sequence and store the results in a new byte array. |
indexOf(String str) |
Int |
Returns the index of the first occurrence of the substring. |
isEmpty() |
boolean |
When and only whenlength() Is0ReturnsTrue. |
indexOf(int ch) |
Int |
Returns the index of the first occurrence of the specified character in this string. |
length() |
Int |
Returns the length of this string. |
matches(String regex) |
Boolean |
Indicates whether the string matches the given regular expression. |
toCharArray() |
Char [] |
Converts a string to a new character array. |
toString() |
String |
Returns the object itself (it is already a string !). |
toUpperCase() |
String |
Use the rules of the default language environmentString All characters in are converted to uppercase letters |
toLowerCase() |
String |
Use the rules of the default language environmentString All characters in are converted to lowercase letters. |
valueOf(Object obj) |
static String |
ReturnObject Parameter string representation. |
trim() |
String |
Returns a copy of the string, ignoring leading and trailing spaces. |
equalsIgnoreCase(String anotherString) |
boolean |
Set thisString With anotherString Comparison, case insensitive |
endsWith(String suffix)
|
boolean |
Test whether the string ends with the specified suffix. |
contains(CharSequence s) |
Boolean |
Returns true if and only if the string contains the specified char value sequence. |
|
|
|
|
|
|
Common Methods for string strings