import java.util.Vector; public class MScResults { private Vector results; public MScResults(){ results = new Vector(); } private MScResult findResult(Integer id){ for(int i=0; i lo.floatValue() && r.mark < hi.floatValue()){ c++; } } return new Integer(c); } public boolean displayLowestMark(){ if (this.results.size() == 0){ return false; } this.displayResultHeader(); this.displayResult(this.getLowestMark()); return true; } public boolean displayHighestMark(){ if (this.results.size() == 0){ return false; } this.displayResultHeader(); this.displayResult(this.getHighestMark()); return true; } public boolean displayResults(){ if (this.results.size() == 0){ return false; } this.displayResultHeader(); for(int i=0; i out.mark){ out = r; } } return out; } private MScResult getLowestMark(){ MScResult out = (MScResult)this.results.elementAt(0); for(int i=1; i= 69.5){ return "Distinction"; } if (this.mark>= 59.5){ return "Merit"; } return "Whatever"; } }

AltStyle によって変換されたページ (->オリジナル) /