如何在java中以字节数据类型存储大于127的值.
int b = 160; System.out.println((byte)b);
它打印-96.
注意:我想在BLE设备上写字节.所以无法将其转换为short或int.
java android
android ×1
java ×1