摘要: 代码如下:public class CommonUtils { //高位在前,低位在后 public static byte[] int2bytes(int num){ byte[] result = new byte[4]; result[0] = (byte)((num >>> 24) & 0xff);//说明一 result[1] = (byte)((num >>> 16)& 0xff ); result[2] = (byte)((num >>> 8) & 0xff ); result[3] = (byte)( 阅读全文
posted @ 2013-10-30 11:06 心意合一 阅读(682) 评论(0) 推荐(0) 编辑