public class Test{
public static void main(String[] args){
//定义三个char变量,并在终端打印
char ch1 = 'A';
char ch2 = '\n';
char ch3 = '\u0041';
System.out.println(ch1);
System.out.println(ch2);
System.out.println(ch3);
//char型参与运算
System.out.println(ch3 + 1);
}
}
public static void main(String[] args){
//定义三个char变量,并在终端打印
char ch1 = 'A';
char ch2 = '\n';
char ch3 = '\u0041';
System.out.println(ch1);
System.out.println(ch2);
System.out.println(ch3);
//char型参与运算
System.out.println(ch3 + 1);
}
}