Tutorial Archive
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 …
Description: This method returns true if and only if this String represents the same sequence of characters as the specified StringBuffer. Syntax: Here is the syntax of this method: public boolean contentEquals(StringBuffer sb) Parameters: Here …
Description: This method appends one String to the end of another. The method returns a String with the value of the String passed in to the method appended to the end of the String used …
Description: This method compares two strings lexicographically, ignoring case differences. Syntax: Here is the syntax of this method: int compareToIgnoreCase(String str) Parameters: Here is the detail of parameters: str — the String to be compared. …