Something
public text v1 · immutablepublic int getJustHit() {
int totalHit = 0;
ArrayList targets = getTargets();
for(Iterator i = targets.iterator(); i.hasNext();) {
if(((Student) i.next()).getJustHit()) {
totalHit++;
}
}
return totalHit;
}