String str = "二進位與十六進位互轉測試"; String hexString = BinaryToHexString(str.getBytes()); System.out.println("str轉換為十六進位:\n"+hexString);
fecbob.pixnet.net