转换的小问题 不行呀,还是转成ASC码了.我想System.out.println(str);显示为10 11 12 13 14 15明白了吗. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 0x10 0x11 0x12 0x13 0x14 的值分别对应是十进制的16 17 18 19 20 楼主要固定的转化成 10 11 12 13 14 15 吗? public static String showML(byte[] b) { String str = ""; try { int iLen = b.length; for(int idx = 0;idx<iLen;idx++) { int iTemp = (byte)b[idx]; str = str + Integer.toHexString(iTemp) + " ";// str = new String(b,"iso-8859-1"); } } catch(Exception e) { str = "Error"; } return str ; }我已经写完了,因为显示16进制数在调试程序的时候比较方便一些,仅此而已.各位大侠们帮我看一下,哪里需要改进.谢谢. 不以import开头的代码行的正则表达式 dispose() 高手指点 方法不执行时怎么回事? POI读取Excel如何判断行是不是为空 进入index.jsp页面不能识别<f:view>标签 对于函数返回对象的一小小问题 能否设置JComboBox中的某些值不能被选中 高分求救,为何rs.beforeFirst执行不了?? 我想在ASP调用JAVA类,为什么不成功!!??? 网站难题 培训9k贵不贵哈,请问? 火线求救!!!关于包的引用问题! 急求关于paint()的小问题
{
String str = "";
try
{
int iLen = b.length;
for(int idx = 0;idx<iLen;idx++)
{
int iTemp = (byte)b[idx];
str = str + Integer.toHexString(iTemp) + " ";
// str = new String(b,"iso-8859-1");
}
}
catch(Exception e)
{
str = "Error";
}
return str ;
}
我已经写完了,因为显示16进制数在调试程序的时候比较方便一些,仅此而已.
各位大侠们帮我看一下,哪里需要改进.谢谢.