标签:显示 logs 文件 div char tin highlight public unicode编码
public class TextCharType{ public static void(Sting[] args){ char c1 = ‘a‘; char c2 = ‘了‘; System.out.println(c1); System.out.print(c2); } }
系统显示为
a
了
println代表打印后回车,ln并不是In;
类名要与文件名对应;
java中以unicode编码,一个char占2个字节,即216=65536;0~63335
标签:显示 logs 文件 div char tin highlight public unicode编码
原文地址:http://www.cnblogs.com/strong-FE/p/6761791.html