Question: Need help with #8 Here is an Event class, which represents some kind of logged event with an automatically generated timestamp. This might be useful
Here is an Event class, which represents some kind of logged event with an automatically generated timestamp. This might be useful in a program that audits changes to a dataset, for example 8. * an event has a name and a timestamp which is set when the * event is created public class Event f private String name; private LocalDateTime timestamp; public Event (String name) this.name name; thi s. timestamp = LocalDateTime . now(); public String getName() return name; public void setName (String name) ( this.name name; public LocalDateTime getTimestamp) return timestamp; public void setTimestamp(LocalDateTime timestamp) this.timestamp timestamp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
