java print out a double array
<p>i have an array with some double value inside:</p>

<pre><code>private double speed[] = {50, 80, 120, 70.3};

public void printSpeed() {
    for(int i = 0; i&lt;=speed.length-1; i++ ) {
        System.out.println(speed[i]);
    }
}

output 
50.0
80.0
12.0
70.3

wanted output
50
80
12
70.3
</code></pre>

<p>How to do print the exactly string of the array?</p>
