How to notify an object that an event of another object? Java : <p>I have a Java class, named Main, which instances several classes with name Subscriber. Subscriber obtains data from the internet and when it obtains a new data it stores it in a variable. When a new data is saved I want it to notify Main, or that it detects it. How could I do it?</p>

<p>I have thought about using the Observer pattern but in my case I have an observer and many observed</p>
