Java中char转为16进制时间:2022-05-29 21:03:01Java中char转为16进制 char a = '0'; String hexStr = Integer.toHexString(a); System.out.println(hexStr);