String m = "sdcs";
char[] chr = m.toCharArray();
for (int i = 0; i < chr.length; i++) {
System.out.print(chr[i]+",");
}把字符串转化为单字符,存入数组中去。
String a = "vgsa";
String b = a.toUpperCase();
System.out.println(b);
for (int i = 0; i < 26; i++) {
System.out.print((char)('A'+i));
}用一个字母打印出所有字母;