java string to class_String Class

Returns the char at index.

Creates and returns a copy of this Object.

(Inherited from Object)

Returns the Unicode code point at the given index.

Returns the Unicode code point that precedes the given index.

Calculates the number of Unicode code points between start

and end.

Compares this string to the given string.

Compares this string to the given string, ignoring case differences.

Concatenates this string and the specified string.

Returns true if this string contains the charss from the given CharSequence.

Returns true if the chars in the given CharSequence are the same

as those in this string.

Returns true if the chars in the given StringBuffer are the same

as those in this string.

Creates a new string by copying the given char[].

Creates a new string by copying the given subsequence of the given char[].

(Inherited from Object)

Compares the specified string to this string to determine if the

specified string is a suffix.

Compares this instance with the specified object and indicates if they

are equal.

(Inherited from Object)

Compares the given string to this string ignoring case.

Returns a new byte array containing the code points in this string encoded using the

system's DefaultCharset().

Returns a new byte array containing the code points of this string encoded using the

given charset.

Obsolete.

Mangles a subsequence of this string into a byte array by stripping the high order bits from

each char.

Returns a new byte array containing the code points of this string encoded using the

named charset.

Copies the given subsequence of this string to the given array

starting at the given offset.

Returns an integer hash code for this object.

(Inherited from Object)

Returns the first index of the given code point, or -1.

Returns the next index of the given code point, or -1.

Returns the first index of the given string, or -1.

Returns the next index of the given string in this string, or -1.

Returns an interned string equal to this string.

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)

Returns the last index of the code point c, or -1.

Returns the last index of the code point c, or -1.

Returns the index of the start of the last match for the given string in this string, or -1.

Returns the index of the start of the previous match for the given string in this string,

or -1.

Returns the number of chars in this string.

Tests whether this string matches the given regularExpression.

Causes a thread which is waiting on this object's monitor (by means of

calling one of the wait() methods) to be woken up.

(Inherited from Object)

Causes all threads which are waiting on this object's monitor (by means

of calling one of the wait() methods) to be woken up.

(Inherited from Object)

Returns the index within this object that is offset from index by

codePointOffset code points.

Returns true if the given subsequence of the given string matches this string starting

at the given offset.

Returns true if the given subsequence of the given string matches this string starting

at the given offset.

Returns a copy of this string after replacing occurrences of the given char with another.

Returns a copy of this string after replacing occurrences of target replaced

with replacement.

Replaces all matches for regularExpression within this string with the given

replacement.

Replaces the first match for regularExpression within this string with the given

replacement.

Splits this string using the supplied regularExpression.

Splits this string using the supplied regularExpression.

Compares the specified string to this string to determine if the

specified string is a prefix.

Compares the specified string to this string, starting at the specified

offset, to determine if the specified string is a prefix.

Returns a string containing a suffix of this string starting at start.

Returns a string containing the given subsequence of this string.

Returns a new char array containing a copy of the chars in this string.

Converts this string to lower case, using the rules of the user's default locale.

Converts this string to lower case, using the rules of locale.

Converts this this string to upper case, using the rules of the user's default locale.

Converts this this string to upper case, using the rules of locale.

Returns a string with no code points <= \u0020 at

the beginning or end.

Converts the specified boolean to its string representation.

Returns a new string of just the given char.

Returns a new string containing the same chars as the given

array.

Returns a new string containing the same chars as the given

subset of the given array.

Returns the string representation of the given double.

Returns the string representation of the given int.

Returns the string representation of the given long.

Converts the specified object to its string representation.

Returns the string representation of the given float.

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the

specified timeout expires.

(Inherited from Object)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the

specified timeout expires.

(Inherited from Object)


版权声明:本文为weixin_34609222原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。