Method of String Class

1) int length(); This method will return the count of the number of characters available in a string. Sample Program

Output: 12 2) char charAt(int index): This method will return a character that is available at the specified index position. The index position starts from 0. If the specified index is not within the […]

Continue reading