1)int length(): it returns the number of characters in a given string .
7
2)char charAt(int where):it returns the character at the specified location. “where” must be a nonnegative specified location within the string. The first element of string is considered to be at position “zero”.
3)boolean equals(): It compares the two strings and returns true if the strings contain the same characters in the same order ,and false otherwise . The comparison is case-sensitive. Syntax: boolean equals(Object string);
4)boolean equalsIgnoreCase(): it compares the two strings and returns true if the strings contain the same characters in the same order, and false otherwise by ignoring the case characters. Syntax:boolean equalsIgnoreCase(String str);
5)int compareTo(String str): it returns ‘0’ if the two strings are equal. ‘Negative number’ if the invoking string is less than str and ‘positive number’ if the invoking string is greater than is passed as an argument. The comparision is case-sensitive
6)int indexOf(String str): it search for the first occurrence of a character. If the character is found the index of that characters in the string is returned. Otherwise , it returns ‘-1’. 7)int indexOf(String ch,int startIndex): it searches the occurrence of character from the startIndex argument.
8)int lastIndexOf(String ch): it searches the last occurrence of the character. The search is performed from the end of the string towards the beginning of the string. If the character is found the index of that character in the string is return. Otherwise ,it returns ‘-1’. 9)String substring(int startIndex): it returns a copy of the sub string that begins that startIndex and return to the end of the invoking string.
10)String substring(int startIndex, int endIndex): It returns all the characters from the beginning index upto but not including the ending index.
11)boolean startsWith(String str):
boolean endsWith(String str): The startWith() method determines whether a given string begins with a specified string or not. Conversely , ends With() method determines whether Sting ends with a specified string or not.
12)String toLowerCase(): it converts all uppercase characters into lowercase character of a string. String toUpperCase(): it converts all lowercase characters into uppercase character of a string.