FileDocCategorySizeDatePackage
EnumImporter.javaAPI DocExample1181Sat Apr 24 08:25:28 BST 2004com.oreilly.tiger.ch08

EnumImporter

public class EnumImporter extends Object

Fields Summary
private com.oreilly.tiger.ch03.Student[]
students
Constructors Summary
public EnumImporter()


    
    students[0] = new Student("Brett", "McLaughlin");
    students[0].assignGrade(A);

    students[1] = new Student("Leigh", "McLaughlin");
    students[0].assignGrade(B);

    students[2] = new Student("Dean", "McLaughlin");
    students[0].assignGrade(C);

    students[3] = new Student("Robbie", "McLaughlin");
    students[0].assignGrade(INCOMPLETE);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    try {
      EnumImporter importer = new EnumImporter();

      importer.printGrades(out);
    } catch (Exception e) {
      e.printStackTrace();
    }
  
public voidprintGrades(java.io.PrintStream out)

    for (Student student : students) {
      if ((student.getGrade() == INCOMPLETE) || 
          (student.getGrade() == D)) {
        // Make this student retake this class
      }
    }