java observable to observer stack overflow

Java
setChanged();
notifyObservers(objectThatUWant);
Source

Also in Java: