Page 804 - Introduction to Programming with Java: A Problem Solving Approach
P. 804

                770 Appendix 5 Java Coding-Style Conventions
 /***************************************************
*
StudentDriver.java
Dean & Dean
This class acts as a driver for the Student class.
***************************************************/
*
*
*
public class StudentDriver
{
}
// end class StudentDriver
public static void main(String[] args)
{
}
Student s1; // first student
Student s2; // second student
s1 = new Student();
s1.setFirst("Adeeb");
s1.setLast("Jarrah");
s2 = new Student("Heejoo", "Chun");
s2.printFullName();
// end main
Figure A5.2 StudentDriver class, used with the Student class in Figures A5.1a and A5.1b. Apago PDF Enhancer









































































   802   803   804   805   806