public class VGSubscriber implements subscriber{ String name; public VGSubscriber(String name){ this.name = name; } @Override public void receiveUpdate(String update){ System.out.println("Hei, " + name + " ny oppdatering: " + update); } }