public void removeAlarm(final Alarm ALARM){
  if (alarms.contains(ALARM))   alarms.remove(ALARM);
}

public void removeAlarm ( final Alarm ALARM ) { if ( alarms . contains ( ALARM ) ) alarms . remove ( ALARM ) ; }
removes the given alarm object from the list of alarms .
