![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 DUKE ![]()
![]() |
1樓
作者回應
DUKE ![]() |
02h 31h 32h 33h 41h 46h 03h
是我要送出的碼 text=02 31 32 33 41 46 03
本篇文章回覆於2013-09-20 00:31
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔-- |
2樓 |
程式碼請參考
getStringToHex 函數原始碼請參考 http://www.programmer-club.com.tw/ShowSameTitleN/java/9584.html 若要每個字尾加上h或H或空白請用迴圈自己加上
本篇文章回覆於2013-09-20 01:50
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔-- |
3樓 |
Hi~你好
提供參考看看 1. 把要的資訊string 丟到 ByteBuffer http://examples.javacodegeeks.com/core-java/nio/bytebuffer/use-bytebuffer-to-store-strings/ 2. 宣告 byte[] data 把ByteBuffer 承接 3. 把資訊轉成Hex for(int i=0;i<data.length;i++){ Integer.toHexString(data[i]); } 以上
本篇文章回覆於2013-10-04 11:16
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔-- |
回覆 |
如要回應,請先登入. |