4 ms·
It's also annoying that there aren't any unsigned (primitive) data types in Java. You end up doing weird bitwise operations to get the correct results. for exa
by tlrobinson 19y ago
It's also annoying that there aren't any unsigned (primitive) data types in Java. You end up doing weird bitwise operations to get the correct results.
for example, to convert an unsigned byte to an integer:
byte a = (some unsigned byte data);
int b = 0xff & a;