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 Android 2023-08-24 49 点赞 0 评论 74 浏览