public class TestCharType{ public static void main(String[] args) { char c1 = 'a'; char c2 = '爪';//unicode 2:0-65535 char c3 = '\'';//转义 System.out.print(c1); System.out.println(c2); System.out.println(c3); char c4 = 'a'; for(int i=0;i<26;i++) { char temp = (char)(c4+i); System.out.print(temp); } System.out.print('\n'); String str = "你好,爪洼"; System.out.print(str); } }