package kata.hmod;

import org.bushe.swing.event.*;

public class Subscriber implements EventTopicSubscriber{

    public Subscriber() {
        System.out.println("Subscriber is instantiated");

        EventBus.subscribe(Publisher.TOPIC_RUMOR, this);
    }

    public void onEvent(final String topic, final Object payload) {
        System.out.println(String.format("Subscriber received a rumor: %s", payload.toString()));
    }
}

Create Subscriber.java