Java Utililty Methods Byte Print

List of utility methods to do Byte Print

Description

The list of methods to do Byte Print are organized into topic(s).

Method

voidprintByte(byte b)
Prints a byte.
String s1 = String.format("%8s", Integer.toBinaryString(b & 0xFF)).replace(' ', '0');
System.out.println(s1); 
StringprintByte(byte b)
print Byte
final String BYTE_FORMAT = "%02x";
return String.format(BYTE_FORMAT, b);