import java.util.Scanner; public class TestSimpleGradeBook { public static void main(String args[]) { // get data for the first object Scanner in = new Scanner(System.in); System.out.println("Enter the name: "); String objectName = in.next(); System.out.println("Enter the grade: "); double objectGrade = in.nextDouble(); // instantiate an object of type SimpleGradeBook SimpleGradeBook firstGB = new SimpleGradeBook(objectName, objectGrade); // use the toString method to output the object System.out.println(firstGB); }// end main }