public class MyStudents { public static void main (String[] args) { // using parameter constructors Student larry = new Student("Larry", 3.43) ; Student moe = new Student("Moe", 2.34) ; Student curly = new Student("Moe", 2.34) ; // using default constructor Student johnDoe = new Student() ; // using modifier methods johnDoe.setName("Shemp") ; johnDoe.setGPA(1.5) ; // print each object's data System.out.println("object larry named " + larry.getName() + " has a GPA of " + larry.getGPA() ) ; System.out.println() ; System.out.println("object moe named " + moe.getName() + " has a GPA of " + moe.getGPA() ) ; System.out.println() ; System.out.println("object curly named " + curly.getName() + " has a GPA of " + curly.getGPA() ) ; System.out.println() ; System.out.println("object johnDoe named " + johnDoe.getName() + " has a GPA of " + johnDoe.getGPA() ) ; // change larry's gpa larry.setGPA(1.5) ; // print larry's change gpa System.out.println() ; System.out.println("object larry's change GPA = " + larry.getGPA() ) ; } }