为什么这样写会出现乱码?
class testAlpha {
testAlpha(){}
static public void main(String[] args){
char tmp = 'a';
for(int i = 0; i<26;i++) {
tmp = (char)(tmp+i);
System.out.print(tmp);
}
}
}
为什么这样写会出现乱码?
class testAlpha {
testAlpha(){}
static public void main(String[] args){
char tmp = 'a';
for(int i = 0; i<26;i++) {
tmp = (char)(tmp+i);
System.out.print(tmp);
}
}
}