/** * Write a description of class EventImpl here. * * @author (your name) * @version (a version number or a date) */ public class EventImpl implements Event { private String time; private String description; public EventImpl(String time, String description){ this.time = time; this.description = description; } public void alarm(String time){ if(this.time.equals(time)){ System.out.println(description); } } public String getTime(){ return time; } public String getDescription(){ return description; } public String toString(){ return time + ":" + description; } }