80,359
社区成员
发帖
与我相关
我的任务
分享
public class ByteTran {
static byte[] b={12,14,15,16};
public static void main(String[] args){
Integer resut = 0;
for(int i = 0; i < b.length; i++){
resut |= (b[i]<<((b.length-i-1)*8));
}
//输出十六进制
System.out.println(Integer.toHexString(resut));
}
}