-
-
Save seyedsahil/6c9ecc7d202bf50db648e242b19d7ca4 to your computer and use it in GitHub Desktop.
Registering with an Observer instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.sydlabz.mvc; | |
public class MVC { | |
public static void main(String[] args) { | |
MessageQueue messageQueue = new MessageQueue(); | |
MessageListener messageListener = new MessageListener(); | |
messageQueue.addObserver(messageListener); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment