Character ch= Character.valueOf('a');//装箱
Character ch1= 'a';
Character character=new Character('a');
System.out.println(ch);//拆箱
System.out.println(ch1);
System.out.println(character);
Character.isDigit(ch);//判断是否是数字
Character.isLetter(ch1);//判断是否是字母
Character.digit(character,16);//将指定字符转换成指定进制的整型
Character.toUpperCase(ch);//转换成大写
Character.toLowerCase(ch1);//转换成小写
character也有整数缓存池,范围为0-127,超过范围同样会new一个新的character,因此超出范围之后的每个character地址值都不一样
标签:ch,包装,character,Character,System,ch1,out From: https://www.cnblogs.com/Liku-java/p/16843380.html