111213141516171819
list.add(o); } public void change_state() { for ( Object o : list) { Observer obs = (Observer) o; obs.update(); } }