title: Reading a text file into a 3d array
body: <p>I want to read my content of a text file into a multidimensional array. My text file consists of strings in a specific format.</p>
  
  <p>I just want to store it into a multidimensional array. I tried using java code to store into string or string array but I don't know how to store this format into a multidimensional array. Can any one help me?</p>
  
  <p>my text file <strong>read.txt</strong> consists of</p>
  
  <pre><code>    { { "Kim","is" "playing" },         { "NOUN", "VERB", "DET" } },
      { { "Shine","is" "eating"},         { "NOUN","DET" "VERB" } },
      { { "Kevin","lives","in","Holland"},  { "NOUN", "VERB ","DET","Holland"} }
  </code></pre>
  
  <p>what I tried is :</p>
  
  <pre><code>    public class MyClass
      {
        static final String[][][] MULTI_ARRAY = new String[][][];
        public static void main(String args[]
        {
          for (String[][] myarray : MULTI_ARRAY) 
  
              String[] sentences = myarray[0];
              String[] partsofspeech = myarray[1];  
          }
        }}
  
        BufferedReader br=new BufferedReader(new FileReader("read.txt"));
        while(br.ready)
        {
           MULTI_ARRAY[][][]=br.readLine();
  
        }
     }
  </code></pre>
  
  <p><strong>ie  I want  my 3d array in the below format</strong></p>
  
  <pre><code>    static final String[][][] MULTI_ARRAY = new String[][][] {
     { { "Kim","is" "playing" },         { "NOUN", "VERB", "DET" } },
      { { "Shine","is" "eating"},         { "NOUN","DET" "VERB" } },
      { { "Kevin","lives","in","Holland"},  { "NOUN", "VERB ","DET","Holland"} }
    };
  </code></pre>