title: How to convert String.getBtyes back to original String
body: <p>I am encoding a string using the following method</p>
  
  <pre><code>public String encrypt(String data)
  {             
          encoded = data.getBytes();
          String str_encoded = java.util.Arrays.toString(encoded);
  
          System.out.println("encoded:" + java.util.Arrays.toString(encoded));
  
          return str_encoded;
  }
  </code></pre>
  
  <p>How do i decode the encoded string to get back my original string .</p>
  
  <p>For example : "abc123" when encoded will be <code>[97, 98, 99, 49, 50, 51]</code></p>
  
  <p>How do i decode <code>[97, 98, 99, 49, 50, 51]</code> back into "abc123"</p>
  
  <p>i am sure its quite simple , but i cant figure it out </p>