import java.util.HashMap;
 import java.util.Scanner;
 import java.io.*;
 public class FillATable {
 static Scanner console = new Scanner(System.in);
 static Scanner input = new Scanner(System.in);
 static String BaseGrades;
 static String BaseInstructor;
 static HashMap<String, Integer> Grades;
 static HashMap<String, String> Instructor;
 static double GPA;
 static int ID;
 static String status;
 static int Number;
 static File html;
    public static void main(String[] args) throws IOException {
    System.out.println("Full Name ?");
    fullname = console.nextLine();
    System.out.println("Number of courses taken ?");
    Number = console.nextInt();
    System.out.println("Please input the courses taken along with the 
    respective grades ");
    for (int i = 0; i <= Number; i++) {
        Grades.put(console.next(), console.nextInt());
    }
    System.out.println("Please input the courses taken along with the 
    respective instructors");
    for (int i = 0; i < Number; i++) {
        Instructor.put(console.nextLine(), console.nextLine());
    }
    System.out.println("GPA ?");
    GPA = input.nextDouble();
    System.out.println("ID number ?");
    ID = input.nextInt();
    for (String course : Instructor.keySet()) {
        String value = Instructor.get(course);
        BaseInstructor = BaseInstructor + "( " + course + "," + value + ")";
    }
    for (String course : Grades.keySet()) {
        Integer value = Grades.get(course);
        BaseGrades = BaseGrades + "( " + course + "," + value + ")"
      }
I get a null pointer exception when when i enter the course and grade any ideas why ? It seems straight forward there must be something i am missing but I have no idea what it is . For the purpose of my work the variables at the beginning should stay static at all times
 
     
    