Simply put, i have a Person class and I wish to implement the Comparator Interface. Whenever I do so, my compiler throws an error saying it cannot find that class. Why does this happen?
public class Person implements Comparator
{
private final String firstName;
private final String lastName;
private int age;
}