public class test{
public static void main(String qrgs[]){
System.out.println("it is test java.");
int a;
byte[] buf =new byte[4];
buf[0]=1;
buf[1]=1;
buf[2]=0;
buf[3]=0;
//byte[] to int
a = ((buf[1]&0xff)<<8)|(buf[0]&0xff);
System.out.println("bruce ==>> a = " + a);
}
}