convert array to string java : <p>Given an array of numbers (integers) how would I go about converting it to a string.</p>

<p>I am from JS so in we normally do : </p>

<pre><code>[1 , 2 , 3 , 4 , 5].join(separator)
</code></pre>

<p>But Java doesn't seem to do that. </p>

<p>I tried : </p>

<pre><code> array.join(" ")
</code></pre>

<p>But that throws an error on that it cannot find symbol. </p>

<hr>

<p>Here is the code : </p>

<pre><code>class Conv {
    public static String findOut(int[] arr) {
        return arr.join(" ");
    }
}
</code></pre>
