plotting graph using java, this program is the demostration of the observer pattern in java.