Convert array in string format to an array : <p>I have the following string : </p>

<pre><code>"[[0, 0, 0], [1, 1, 1], [2, 2, 2]]"
</code></pre>

<p>What is the easiest way in Java to convert this to a pure multidimensional float array?
Somthing like this for example:</p>

<pre><code>String stringArray = "[[0, 0, 0], [1, 1, 1], [2, 2, 2]]";
float[][] floatArray = stringArray.parseSomeHow() //here I don't know the best way to convert
</code></pre>

<p>Sure I could write an algorithm that would read for example each char or so. But maybe there is a simpler and faster way that java already provides.</p>
