You are viewing a single comment's thread. Return to all comments →
For Java8:
List gradeNew = new ArrayList<>(); for(Integer grade: grades){ if(grade>=38){ if(grade%5>=3){ grade =(grade/5+1)*5; } } gradeNew.add(grade); } return gradeNew;
List gradeNew = new ArrayList<>();
for(Integer grade: grades){
if(grade>=38){ if(grade%5>=3){ grade =(grade/5+1)*5; } } gradeNew.add(grade); } return gradeNew;
Seems like cookies are disabled on this browser, please enable them to open this website
Grading Students
You are viewing a single comment's thread. Return to all comments →
For Java8: