Computer Applications

Mention the purpose and syntax of charAt() method.

Java String Handling

3 Likes

Answer

The charAt() method accepts an index number as its argument and returns the character present at that particular index. The index of the string ranges from 0 to length() - 1.
Syntax:
stringObject.charAt(index)

Answered By

2 Likes


Related Questions