Site icon 咖啡偶-IT日常

java convert byte to unsigned integer

byte a = (byte) 0x88;
int unsignedInteger = a&0xff;

Exit mobile version