Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Created March 5, 2018 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathurangat/a6ddc326432e3d37030481b7d623cfbe to your computer and use it in GitHub Desktop.
Save chathurangat/a6ddc326432e3d37030481b7d623cfbe to your computer and use it in GitHub Desktop.
public class ObserverA implements Observer {
@Override
public void receiveUpdate(Subject subject)
{
System.out.println("update received by [" + this.getClass().getSimpleName() + "]");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment