Answer:
import java.time.LocalDate;
import java.util.Objects;
class Employee implements Comparable<Employee> {
private int id;
private String name;
private double salary;
private LocalDate joiningDate;
See attached image for the full code
9.4m questions
12.2m answers