62,614
社区成员
发帖
与我相关
我的任务
分享
public class CharTest {
public static void main(String[] args) {
char c = '国';
// System.out.printf 仅在 JDK 1.5 及以上的版本有效
System.out.printf("“%c”的Unicode编码:%04X%n", c, (int)c);
}
}
System.out.println((int)'我');