Unnamed
public text v1 · immutablepublic int getJustHit() {
int totalHit = 0;
List<Student> students = getStudents();
for ( Student student : students ) {
if(student == null)
throw new RuntimeException("WTF?!");
if(student.getJustHit()) {
totalHit++;
}
}
return totalHit;
}