Initializing Multidimentional Arrays
<p>I have a 3-multidimentional array :</p>

<pre><code>int[][][] env;
</code></pre>

<p>which i would like to initialize with data in a text file. The data in the text file looks like this:</p>

<pre><code> {                                                {  { 0, 1,-1},     
                                                     { 0, 2,-1},
                                                     {-1,-1,-2},
                                                     { 0, 0, 0}   },

                                                { { 0, 0,-1},
                                                  { 0, 0,-1},
                                                  {-1,-1,-2},
                                                  { 0, 0, 0}    } 
  }
</code></pre>

<p>Actually the accolades can be removed and replaced with different characters if it is necessary. If there are any better way to format the values in the text file, then it is welcomed.</p>

<p>I am looking for the best way to initialize the array in the java program with the values from the text file.</p>

<p>All your help is appreciated.</p>

<p>Thanks.</p>
