title: initialize two dimensional string array with dynamic size in java
body: <p>I have unknown number of records and I need to put all that records in string two dimensional array. </p>
  
  <p>I don't know the number of records and due to this, don't know number of rows and columns which is required for string 2d array initialization. </p>
  
  <p>Currently I am using as below:</p>
  
  <pre><code>String[][] data = new String[100][100]; 
  </code></pre>
  
  <p>Here I hard coded number of rows and columns but need something dynamic size allowable in string 2d array. Any suggestion pls!</p>
  
  <p>Rgrds</p>