package release10; /** * */ /** * StudentTester creates two instances of Student objects using * two different constructors, then displays the information for both. * * @author Gene * @version 1.0 10/29/2009 */ public class StudentTester { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Student s1 = new Student("John", "Smith", 111111); Student s2 = new Student(); System.out.println("List of Students:"); System.out.println(" { " + s1.getFirstName() + " " + s1.getLastName() + ", " + s1.getIdNumber() + " }"); System.out.println(" { " + s2.getFirstName() + " " + s2.getLastName() + ", " + s2.getIdNumber() + " }\n"); System.out.println("Making modifications...\n"); s1.setFirstName("Jonathan"); s2.setIdNumber(222222); System.out.println("List of Students:"); System.out.println(" { " + s1.getFirstName() + " " + s1.getLastName() + ", " + s1.getIdNumber() + " }"); System.out.println(" { " + s2.getFirstName() + " " + s2.getLastName() + ", " + s2.getIdNumber() + " }\n"); } }