title: How to fix my Array class
body: <p>I am trying to figure out how to get my array to run correctly, I know I have to change the array value to an input but I cannot get the program to compile if any one can help that be great.
  I am trying to have the program take input for grades and names of students and in the end output their name and grade.
  <strong>Edit</strong> sorry this is my first it posting i have an error 
  <strong>Student.java:60: error: class, interface, or enum expected</strong> I am in java 101 so this is why it is such low level java, we only know the basics</p>
  
  <pre><code>import java.util.Scanner;
  
  public class students
  {
     public static void main(String[] args)
     {
        Scanner keyboard = new Scanner(System.in);
  
        System.out.println("How many students?: ");
        int numofstudents = keyboard.nextInt();
  
        Student s = new Student();
  
        s.setMultipleStudents();
        s.toString();
  
  
        System.out.println("Enter the Grade for the student: ");
        int gradeofstudnets = keyboard.nextInt();
  
  
     }
  }
  </code></pre>
  
  <p>and my second class is </p>
  
  <pre><code>import java.util.Scanner;
  
  public class Student
     {
  
      Scanner scan = new Scanner(System.in);
      private String name;
      private int grade;
      private int[] multiplegradeinputs = new int[10];
      private String[] multipleStudent = new String[10];
  
      public Student()
      {
      }
  
      public Student(String n, int g)
      {
        name = n;
        grade = g;
      }
  
      public  String setMultipleStudents()
      {
        String n = "";
        for(int i = 1; i &lt; multipleStudent.length; i++)
        {
           System.out.println("Enter student #" + i +" name: " );
           n = scan.nextLine();
           multipleStudent[i] = n;
  
        }
  
        return null;
      }
  
  
  
      public String multiplegradeinputs()
      {
        for(int i = 1; i &lt;multiplegradeinputs.length; i++)
        {
           System.out.println("Enter the Grade of the student#" + i +" : ");
           grade = scan.nextInt();
           multiplegradeinputs[i] = grade;
        }
      } &lt;--- error here
  
      public String toString()
      {
        String temp = "";
         for(int i = 1; i &lt; multipleStudent.length; i++)
        {
           temp += multipleStudent[i] + " ";
        }
  
        return temp;
  
      }
  }
  </code></pre>