title: Converting string to double error
body: <p>I have a problem converting a basic float array to string and then to double.</p>
  
  <p>I have:</p>
  
  <pre><code> private static float[] getSample() {
  
        float[] sample = new float[sampleSize];
  
        // Gets the sample an returns it
        sampleProvider.fetchSample(sample, 0);
        return sample;
    }
  </code></pre>
  
  <p>Which return a float[] then I use:</p>
  
  <pre><code>String sampleColor = Arrays.toString(getSample());
  </code></pre>
  
  <p>This for example returns: [0.62]. I think the problem is with the square brackets
  I can verify by using: </p>
  
  <pre><code>System.out.println(sampleColor);
  </code></pre>
  
  <p>But when I try to convert it to double it just gives me an error. I try to convert it using parseDouble:</p>
  
  <pre><code>double colorT = Double.parseDouble(sampleColor);
  </code></pre>