package ch02;
public class Test2_2 {
	public static void main(String[] args) {
		char ch1, ch2, ch3, ch4;
		ch1 = 66;       //对于字符型变量，可以直接赋值一个整型数值，对应字符B
		ch2 = 'B';       //之间赋值单字符
		ch3 = '\u4E2D';  //赋值转义字符，对应的字符为汉字字符“中”
		ch4 = '中';      //直接赋值单字符
		System.out.print("ch1 and ch2=");
		System.out.println(ch1 + "和" + ch2);
		System.out.print("ch3 and ch4=");
		System.out.println(ch3 + "和" + ch4);
	}
}
