class Text{
public static void main(String[] args){
byte[] buffer = {-128,-127,-2,-1,0,1,2,126,127};
int[] databuf = new int[buffer.length];
System.out.println(Byte.MIN_VALUE+"***"+Byte.MAX_VALUE);
for (int i = 0; i < buffer.length; i++)
{
databuf[i] = buffer[i]+256;
System.out.print(databuf[i]+",.......");
databuf[i] = (int) ((buffer[i] + 256) % 256);//I这句话表达了什么意思
System.out.println(databuf[i]);
}
}
}
|