title: Convert List<Byte> to string
body: <p>I have the following code:</p>
  
  <pre><code>List&lt;String&gt; decryptedPasswordInPairs = new ArrayList&lt;String&gt;();
  String A5 = "A5";
  for (String oddPair : oddPairsInEncryptedPassword) {
      List&lt;Byte&gt; sample = new ArrayList&lt;&gt;();
      for (int i = 0; i &lt; oddPair.length(); i++) {
          byte x = (byte) (oddPair.charAt(i) ^ A5.charAt(i % A5.length()));
          sample.add(x);
      }
      String result = sample.toString();
      decryptedPasswordInPairs.add(result);
  }
  </code></pre>
  
  <p>In this code, <code>result</code> is displayed as <code>[0,7]</code> instead of <code>07</code> when I debug the program to check the value of <code>result</code>.</p>
  
  <p>Is there a way to convert this <code>List</code> of <code>Byte</code>s to a <code>String</code> without having any problems?</p>