title: Byte[] to String java 1.5
body: <p>I am trying the below code :-</p>
  
  <pre><code>private Charset charset = Charset.forName("UTF-8");
  String decryptedtext = new String(decryptedValue, charset);
  </code></pre>
  
  <p>where <code>decryptedValue</code> is of type <code>byte[]</code> but the above code is not working for java 1.5 version. I am getting the error as below :-</p>
  
  <pre><code>&gt; ERROR: symbol : constructor String(byte[],java.nio.charset.Charset)
  &gt; ERROR: location: class java.lang.String
  &gt; ERROR: String decryptedtext = new String(decryptedValue, charset); 
  &gt; ERROR: ^
  </code></pre>
  
  <p>Can anyone help me on this ? </p>
  
  <p>Apologies in advance if this is a repetitive or duplicate question. </p>