![]() ![]() This method compares this string to the specified object.īoolean equalsIgnoreCase(String anotherString) This method tests if this string ends with the specified suffix. ![]() Static String copyValueOf(char data, int offset, int count) This method returns a String that represents the character sequence in the array specified. This method compares this string to the specified StringBuffer. This method compares this string to the specified CharSequence. This method ceturns true if and only if this string contains the specified sequence of char values. This method concatenates the specified string to the end of this string. This method compares two strings lexicographically, ignoring case differences. This method compares two strings lexicographically. This method returns the number of Unicode code points in the specified text range of this String. Int codePointCount(int beginIndex, int endIndex) This method returns the character (Unicode code point) before the specified index. This method returns the character (Unicode code point) at the specified index. This method returns the char value at the specified index. This allocates a new string that contains the sequence of characters currently contained in the string builder argument. This allocates a new string that contains the sequence of characters currently contained in the string buffer argument. This initializes a newly created String object so that it represents the same sequence of characters as the argument in other words, the newly created string is a copy of the argument string. This allocates a new String that contains characters from a subarray of the Unicode code point array argument. String(int codePoints, int offset, int count) This allocates a new String that contains characters from a subarray of the character array argument. ![]() String(char value, int offset, int count) This allocates a new String so that it represents the sequence of characters currently contained in the character array argument. String(byte bytes, int offset, int length, String charsetName) This constructs a new String by decoding the specified subarray of bytes using the specified charset. String(byte bytes, int offset, int length, Charset charset) This constructs a new String by decoding the specified subarray of bytes using the platform's default charset String(byte bytes, int offset, int length) This constructs a new String by decoding the specified array of bytes using the specified charset. This constructs a new String by decoding the specified array of bytes using the platform's default charset. This initializes a newly created String object so that it represents an empty character sequence. Static Comparator CASE_INSENSITIVE_ORDER − This is a Comparator that orders String objects as by compareToIgnoreCase. Implements Serializable, Comparable, CharSequenceįollowing are the fields for class − All string literals in Java programs, such as "abc", are implemented as instances of this class.Strings are constant, their values cannot be changed after they are created Class Declarationįollowing is the declaration for class − ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |