System.out.println(Integer.toHexString(test[0]));
或 (精美打印)
System.out.printf("0x%02X", test[0]);或 (精美打印)
System.out.println(String.format("0x%02X", test[0]));
System.out.println(Integer.toHexString(test[0]));
或 (精美打印)
System.out.printf("0x%02X", test[0]);或 (精美打印)
System.out.println(String.format("0x%02X", test[0]));