public LogEntry(String timestamp,String contents){
  this.timestamp=timestamp;
  this.contents=contents;
}

public LogEntry ( String timestamp , String contents ) { this . timestamp = timestamp ; this . contents = contents ; }
creates a new log entry with the given timestamp and contents
