How to print bytes in hexadecimal using System.out.println?

前端 未结 3 1804
野性不改
野性不改 2021-01-31 16:46

I\'ve declared a byte array (I\'m using Java):

byte test[] = new byte[3];
test[0] = 0x0A;
test[1] = 0xFF;
test[2] = 0x01;

How could I print the

3条回答
提交回复
热议问题