Task subtask = (Task) tasks.nextElement(); System.out.println("subtask changed: " + format(subtask));
Task subTask = (Task) tasks.nextElement(); try { checkTaskValid(subTask); System.out.println("subTask changed: " + format(subTask)); } catch (RuntimeException re) { System.err.println("handleSubTasksChanged: " + re); }
    private void handleSubTasksChanged(Enumeration tasks) {        while (tasks.hasMoreElements()) {            Task subtask = (Task) tasks.nextElement();            System.out.println("subtask changed: " + format(subtask));        }    }