Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个byte b在 Java 中表示从 -128 到 +127 的有符号整数。如何将其转换为仅表示(正)无符号整数?我不想使用intorlong而是一个 1 字节的表示,而只是将位移入b
byte b
int
long
b