February 2014
Beginner
1248 pages
62h 25m
English
To demonstrate the nested if...else statements in class Student’s getLetterGrade method, class StudentTest’s main method (Fig. 4.5) creates two Student objects (lines 7–8). Next, lines 10–13 display each Student’s name and letter grade by calling the objects’ getName and getLetterGrade methods, respectively.
Read now
Unlock full access