int、char、double与byte相互转换的程序
//整数到字节数组的转换 public static byte[] intToByte(int number) { int temp = number; byte[] b=new byte[4]; for (int i=b.length-1;i>-1;i--){ b[i] = new Integer(temp&0xff).byteValue(); //将最高