Java – String endsWith() Method

Description: This method tests if this string ends with the specified suffix. Syntax: Here is the syntax of this method:…

12 years ago

Java – String copyValueOf() Method

Description: This method has two different forms: public static String copyValueOf(char[] data): Returns a String that represents the character sequence…

12 years ago

Java – String contentEquals() Method

Description: This method returns true if and only if this String represents the same sequence of characters as the specified…

12 years ago

Java – String concat() Method

Description: This method appends one String to the end of another. The method returns a String with the value of…

12 years ago

Java – String compareToIgnoreCase() Method

Description: This method compares two strings lexicographically, ignoring case differences. Syntax: Here is the syntax of this method: int compareToIgnoreCase(String…

12 years ago

Java – String compareTo() Method

Description: There are two variant of this method. First method compares this String to another Object and second method compares…

12 years ago

Java – String charAt() Method

Description: This method returns the character located at the String's specified index. The string indexes start from zero. Syntax: Here…

12 years ago