String in Java Archive
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. …
Description: There are two variant of this method. First method compares this String to another Object and second method compares two strings lexicographically. Syntax: Here is the syntax of this method: int compareTo(Object o) or …
Description: This method returns the character located at the String’s specified index. The string indexes start from zero. Syntax: Here is the syntax of this method: public char charAt(int index) Parameters: Here is the detail …