I am trying to convert a string like \"testing123\" into hexadecimal form in java. I am currently using BlueJ.
And to convert it back, is it the same thing except b
First convert it into bytes using getBytes() function and then convert it into hex usign this :
private static String hex(byte[] bytes) { StringBuilder sb = new StringBuilder(); for (int i=0; i