This method returns a character at specified location i. Signature
The signature of string charAt() method is given below:
public char charAt(int index)
String charAt program
class Test
{
public static void main(String[] args)
{
String str="freetmielearn";
System.out.println(str.charAt(1));
char ch="freetmielearn".charAt(2);
System.out.println(ch);
}
}