I am trying to make a Java binary translator, and I have gotten to the part of translating the binary back to a String. I have made it to a byte array. I want to convert it to a string.
For example, I want a new byte array of {01000001, 01100001, 01000010, 01100010} to return "AaBb".
How can I do this?
String(byte[] bytes, String charsetName)Constructs a new String by decoding the specified array of bytes using the specified charset.