java输出“☐、☑”等特殊符号

  • Post author:
  • Post category:java


    public static void main(String[] args) {
		int[] code = {0x2610, 0x2611, 0x2612, 0x2613, 0x2614, 0x2615, 0x2616};
		for (int i = 0; i < 7; i++) {
			String s1 = new String(code, i, 1);
			System.out.println(s1);
		}
	}

// \u0052 勾  "\u25A1" 框
		System.out.println("\u0052");
        System.out.println("\u25A1");
        System.out.println("\u00FE");
        System.out.println("\u00FC");



版权声明:本文为yubin1285570923原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。