import java.math.BigInteger;
public class HexNumberToInteger {
public static void main(String[] args) {
byte[] x = { 127, -1, -1, -1 };
byte[] y = { -128, 0, 0, 0 };
BigInteger xx = new BigInteger(x);
System.out.println("整数最大值:" + xx.intValue());
BigInteger yy = new BigInteger(y);
System.out.println("整数最小值:" + yy.intValue());
}
}