title: JAVA Trouble printing the correct amount of grades that the user asked for using one dimenstional array and methodss
body: <p>I'm basically asking the user to enter the amount of grades he would like to enter and those grades would be stored in an array. I would ask the user "Please enter the number of grades". If the user has entered '3' for example. Then the he would be asked to input data for 3 grades. A message would pring "Enter grade 1: " "Enter grade 2: " "Enter Grade 3: " etc. I didn't have any trouble writing the code but obviously it's not correct. </p>
  
  <p>When I enter 3 for example for the number of grades, the program starts my printing "Enter Grade 0:" and then goes on to print 4 grades.  <a href="https://i.stack.imgur.com/q10IK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q10IK.jpg" alt="enter image description here"></a>     </p>
  
  <p>Here's my code:</p>
  
  <p>I feel like I need to somehow involve the array length? Any help would greatly appreciated. :) </p>