title: Java - Creating an Undefined Array
body: <p>I'm looking to create an array that will be able to change size over time because the size of the array is unpredictable and I don't want to create a huge random number that will waste memory so every time a button is pressed I need the array to grow by one. </p>
  
  <pre><code>private String[][] lyricLineInfo = new String[x][5];
  </code></pre>
  
  <p>In the place of x is where the array must grow upon the button push and 5 is a constant. So I need the x button to grow by one without overflowing. Can I do it by using something like this?</p>
  
  <pre><code>lyricLineInfo[lyricLineInfo.length + 1][4] = fieldLyrics.getText();
  </code></pre>
  
  <p>Anyways thanks in advance!</p>