I have a byte array filled with hex numbers and printing it the easy way is pretty pointless because there are many unprintable elements. What I need is the exact hexcode in
We don't need to use any external library or to write code based on loops and constants. Is enough just this:
byte[] theValue = ..... String hexaString = new BigInteger(1, theValue).toString(16);