Answers for "java convert negative byte to unsigned int"

3

how to converet negative byte value to postive int value in java

int value = (byteValue >= (byte) 0) ? (int) byteValue : 256 + (int) byteValue;
Posted by: Guest on August-22-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language