for (Iterator iter = myScheduledMalfunctions.iterator(); iter.hasNext();) { MalfunctionImpl currentMalfunction = (MalfunctionImpl) (iter.next());
for (MalfunctionImpl currentMalfunction : myScheduledMalfunctions) {
    private void checkForScheduledMalfunctions() {        for (Iterator iter = myScheduledMalfunctions.iterator(); iter.hasNext();) {            MalfunctionImpl currentMalfunction = (MalfunctionImpl) (iter.next());            if (currentMalfunction.getTickToMalfunction() == getMyTicks())                startMalfunction(currentMalfunction);        }    }