import java.util.Comparator;
public class Person implements Comparable<Person>
{
public static void main(String[] args)
{
}
public int compareTo(Person other)
{
int diff = getLastName().compareTo(other.getLastName());
if (diff == 0)
diff = getFirstName().compareTo(other.getFirstName());
return diff;
}
}
这些是我一直在犯的错误
在第11,11,13和13行找不到符号