String in Java Archive
Description: This method returns a hash code for this string. The hash code for a String object is computed as: s*31^(n-1) + s*31^(n-2) + … + s Using int arithmetic, where s is the ith …
Description: This method copies characters from this string into the destination character array. Syntax: Here is the syntax of this method: public void getChars(int srcBegin, int srcEnd, char dst, int dstBegin) Parameters: Here is the …
Description: This method has following two forms: getBytes(String charsetName): Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array. getBytes(): Encodes this String into a …
Description: This method compares this String to another String, ignoring case considerations. Two strings are considered equal ignoring case if they are of the same length, and corresponding characters in the two strings are equal …
Description: This method compares this string to the specified object. The result is true if and only if the argument is not null and is a String object that represents the same sequence of characters …
Description: This method tests if this string ends with the specified suffix. Syntax: Here is the syntax of this method: public boolean endsWith(String suffix) Parameters: Here is the detail of parameters: suffix — the suffix. …
Description: This method has two different forms: public static String copyValueOf(char data): Returns a String that represents the character sequence in the array specified. public static String copyValueOf(char data, int offset, int count): Returns a …