Adding lines from a file into 2D array Java : <p>I'm having trouble trying to write the syntax in Java to do what I want to do with this file</p>

<p>What i'm doing is reading in a file and I want to add specific lines of the file to elements of a 2D array, I have written some pseudo code below to help understand what im trying to do </p>

<pre><code>    try
    {
        FileInputStream fStream = new FileInputStream(fileName);
        DataInputStream inStream = new DataInputStream(fStream);
        BufferedReader brRead = new BufferedReader (new InputStreamReader(inStream));

        String line;

        while ((line = brRead.readLine()) !=null)
        {
            //Lines 1-3 
            //{
            // Add line 1 into element 0,0 of my array
            // Add line 2 into element 0,1 of my array
            // Add line 3 into element 0,2 of my array
            //}

            //Lines 4-10
            //{
            // Add line 4 into element 1,0 of my array
            // Add line 5 into element 1,1 of my array
            // ect..
            //}
        }
    }
    catch (Exception e)
    {

    }
}
</code></pre>
