Пример #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();
 }