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

This note was uploaded on 09/16/2011 for the course CSE CSE 1020 taught by Professor Burton,ma during the Fall '10 term at York University.

Ask a homework question - tutors are online