📅  最后修改于: 2022-03-11 14:52:22.044000             🧑  作者: Mango
The charAt() method returns the character at the specified index in a string.
The index of the first character is 0, the second character is 1, and so on.
String myStr = "Hello";
char result = myStr.charAt(0);
System.out.println(result);
o/p:
H