public class demo {
public static void main(String[] args) {
char c1 = 'a';
System.out.println(c1);
int c2 = c1 + 2;
System.out.println(c2);
char c3 = (char)(c2+2);
System.out.println(c3);
for(int i=0;i<26;i++){
char temp = (char)(c1+i);
System.out.print(temp);
}
}
}
输出结果:
a
99
e
abcdefghijklmnopqrstuvwxyz