title: Converting 32 byte array to 32 bit string
body: <p>I have the following code. I have a 32 length string which is converted to a byte array. Problem is I need to convert it to a 32 length string. Problem is, it's coming back as a 64 length string. Is there some magic I should look at?</p>
  
  <pre><code>class Go {
  
      public void run() {
          String testString = "12345678901234567890123456789012";
  
          byte[] bytesData = testString.getBytes();
          StringBuilder st = new StringBuilder();
  
          for (byte b : bytesData) {
              st.append(String.format("%2d", b));
          }
  
          System.out.println(st.toString());
      }
  
  
      public static void main(String[] v2) {
          Go v = new Go();
          v.run();
      }
  }
  </code></pre>