title: Displaying list from an array, input data numerically
body: <p>I am trying to take input from the user on student data. First, I ask the user how many students they are inputing data on. Then, the code asks the user for the data on the exact number of students the user put in for the first question.</p>
  
  <p>Below is the start of my code. I am having issues in getting the user input after the initial variable. I need to take that variable, say the user enters <code>5</code>, I need to prompt the user 5 times to input the Students Name and grade. Like so:</p>
  
  <pre><code>Student 1 last name:
  Student 1 first name:
  Student 1 grade:
  
  Student 2 last name:
  </code></pre>
  
  <p>I have to use an array, I just need to figure out how to properly get the user input.</p>
  
  <pre><code>import java.util.Scanner;
  
  public class StudentScoresApp {
  
      public static Score score = new Score();
      private static Student student;
  
      public static void main(String[] args) {
          System.out.println("Welcome to the Student Scores Application.\n");
          getStudentScores();
      }
  
      public static void getStudentScores() {
          Scanner input = new Scanner(System.in);
          System.out.println("Enter number of students to enter:   ");
          int num = input.nextInt();
          int [] a = new int[num];
          for (int i = 0 ; i &lt; num ; i++); {
              System.out.print("Enter Student " + (i + 1) + " last name:");
              a[i] = in.nextInt();
          }
      }
  }
  </code></pre>