7 lines
189 B
Java
7 lines
189 B
Java
package observer;
|
|
|
|
/** Observer interface — all subscribers implement this */
|
|
public interface StockObserver {
|
|
void onPriceChanged(String ticker, double oldPrice, double newPrice);
|
|
}
|