I'm trying to use org.apache.commons.codec.binary.Hex to encode and decode a String value:
e.g.:
Hex.encodeHex("10".getBytes()).toString();
However, this is not giving me a hexadecimal output, but outputs similar to this:
[C@596d444a
Any ideas why this is happening?