The only way to set the name for the instructor is with the
setInstructorName method which you did not use in your main method. Your only GradeBook constructor requires a String argument whose value is assigned to the "courseName" member variable. The member variable "InstructorName remains null until you assign it a value via the
setInstructorName method.
public static void main( String args[] )
{
GradeBook Iname1 = new GradeBook("Sam Smith");
Iname1.setInstructorName("John Stuart");
// Now it won't be null for the "Iname1" instance.
...