I need to print a variable of type byte
in an unsigned format. How do I do that?
Are you saying you are starting with a signed int and want the absolute value? You could do something like this:
byte b = Byte.parseByte("-9");
int i = (int) b;
System.out.println(Math.abs(i));