private void notifyObservers()
{
- for (ReadEnd o : attached)
- o.update();
+ attached.forEach(r -> r.update());
}
/**
@Override
public void notifyObservers()
{
- for (LogicObserver ob : observers)
- ob.update(this);
+ observers.forEach(ob -> ob.update(this));
}
}