I am working with java.nio in Java 8. I receive an unsigned int inside the buffer and i want to save it as such, but i get a negative number.
final int shouldBePositive = buffer.getInt();
and shouldBePositive is negative.
Is there a way to work around the fact Java doesn't have unsigned int type?