Class Person (problem)

The class must implement the Comparable<E> interface. Compare two persons first by their last name then by their first name.

public interface Caparable<E> {
  /**
   * Compares this object to o. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater
   * than the specified object.
   */
  int compareTo(E o);
}