/**
*测试字符类型
- @王绍乾
*/
public class TestPrimitiveDateType2 {
public static void main(String[] args) {
char a = ‘F’;
char b = ‘王’;
char c = ‘\u0061’;
System.out.println©;
//转义字符
System.out.println(""+'a'+'\n'+'b');
System.out.println(""+'a'+'\t'+'b');
System.out.println(""+'a'+'\''+'b');//a'b
}
}