The charAt() method returns the character at the specified index, the Index range from 0 to length() -1.

Signature

The signature or syntax of string charAt() method is given below:

Return the character at the specified index.

Example

The output is

Categories: Java