年轻火

文章
9
资源
1
加入时间
3年1月7天

Java中10进制转byte[]

//两个字节的方法public static byte[] int2bytes(int n) {int temp1 = 0,temp2=0;   byte[] hex = new byte[2];     if(n    {  hex[1] = (byte) n;     }   else   {temp1 = n & 0xff;hex[1] = (by