package release11; /** * */ /** * StudentTester creates two instances of Student objects using * two different constructors, then displays the information * both using the toString() method. * * @author Gene * @version 1.1 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.toString()); System.out.println(" " + s2.toString()); System.out.println(""); System.out.println("Modifying Students..."); System.out.println(""); s1.setFirstName("Jack"); s2.setIdNumber(888888); System.out.println("List of Students:"); System.out.println(" " + s1.toString()); System.out.println(" " + s2.toString()); } }