public class Test_2
{
public static void main(String[] args)
{
String name = "CHINA";
char[] c = name.toCharArray();
for (int i = 0;i < c.length;i ++)
{
System.out.println(c[i]);
}
}
}
好像是用name.charAt(i);i可以是0,1,2,3,4
0是'C',以此类推
charAt()