KnowledgeBoat Logo
|

Computer Applications

Mention the purpose and syntax of charAt() method.

Java String Handling

80 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

3 Likes


Related Questions