public class StudentTest
{

    public static void main(String[] args)
    {
        //instatiate 5 objects - 2 using the first constructor and the other 3 using the second one

        Student s1 = new Student("Fred","Smith");
        Student s2 = new Student("Tom","Jones");
        Student s3 = new Student("Bill","Anderson","10 Elm St.","Buffalo","NY","banderson@blah.com");
        Student s4 = new Student("Ellen","Wilson","13 4th Ave.","Boston","MA","ewilson@blah.edu");
        Student s5 = new Student("Mary","Holt","1 Front St.","Edison","NJ","mholt@blah.org");

        //print out the 5 objects

        System.out.println("Initial state of student records:\n");

        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s4);
        System.out.println(s5);

        //use setters to change the information for s1 and s2

        System.out.println("\nChanging data for student "+ s1.getFullName() + ":");

        s1.setAddress("88 12th St.");
        s1.setCity("Boise");
        s1.setState("ID");
        s1.setEmail("fsmith@blahblah.com");

        System.out.println(s1);

        System.out.println("\nChanging data for student "+ s2.getFullName() + ":");

        s2.setAddress("15 Oak Dr.");
        s2.setCity("Billings");
        s2.setState("MT");
        s2.setEmail("tjones@blahblah.edu");

        System.out.println(s2);

        // use getters to print out selected fields from the objects

        System.out.println("\nWe can also just get the student ids and their names.\n");

        System.out.println("Student ID: " + s1.getStudentID() + "\tName: " + s1.getFullName());
        System.out.println("Student ID: " + s2.getStudentID() + "\tName: " + s2.getFullName());
        System.out.println("Student ID: " + s3.getStudentID() + "\tName: " + s3.getFullName());
        System.out.println("Student ID: " + s4.getStudentID() + "\tName: " + s4.getFullName());
        System.out.println("Student ID: " + s5.getStudentID() + "\tName: " + s5.getFullName());

        //use a setter for a static field to change the class instructor

        Student.setInstructor("Steve Jobs");

        //print out the final version of all 5 objects

        System.out.println("\nHere is the complete student list again after our changes:\n");

        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s4);
        System.out.println(s5);
    }
}