예제 #1
0
 public static Number randomGrade(Course course, int min, int max) {
   return course.isGradeInteger()
       ? Student.randomIntegerGrade(min, max)
       : randomDoubleGrade(min, max);
 }
예제 #2
0
 public static Number randomGrade(Course course) {
   return course.isGradeInteger() ? Student.randomIntegerGrade() : randomDoubleGrade();
 }