• + 0 comments
    public static List<Integer> gradingStudents(List<Integer> grades) {
            return grades.stream().map(elem -> {
                int module = 5 - (elem % 5);
                return elem >= 38 && module < 3 ? elem + module : elem;
            }).collect(Collectors.toList());
        }