eightLab5 - int index =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import type.lib.Student; i public class eightLab5 { public static void main(String[] args) { Student random = Student.getRandom(); final String GRADE = "FEDCBAA"; for (String course : random) { System.out.println(random.getCourseGrade(course));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int index = GRADE.indexOf(random.getCourseGrade(course)) + 1; random.setCourseGrade(course, GRADE.substring(index, index + 1)); System.out.println(random.getCourseGrade(course) + "\n"); } } }...
View Full Document

Ask a homework question - tutors are online