title: How can I make a dynamic array in Java?
body: <p>Quick overview of our assignment:
  User needs to enter grades received. We do not know how many grades user needs to enter. If the user enters "-1" thats when we know the user is done entering grades. </p>
  
  <p>Problem is how do you use a counter and assign values to an array in the same loop? I would rather not have to ask the user to enter all values twice (Once to get array size and the second time to assign grades to index positions). </p>
  
  <p>Our professor gave us a handout that tells us to basically guess the size of the array and hope for the best. I refuse to believe that's the only solution. </p>
  
  <p>Any help would be appreciated. Thanks. </p>