How to convert byte array into Human readable format?
If all you want to do is see the numeric values you can loop through the array and print each byte:
for(byte foo : arr){
System.out.print(foo + " ");
}
Or if you want to see hex values you can use printf
:
System.out.printf("%02x ", foo);
If you want to see the string that the byte array represents you can just do
System.out.print(new String(arr));
byte[] byteArray = new byte[] {87, 79, 87, 46, 46, 46};
String value = new String(byteArray);