获取字符串中的字符

String name = "Royce";
int i = 0;
char ch = name.charAt(i);