Object Oriented Programming Practice Quiz

Practice Problem

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);
}

You can restart the timer by reloading the page.

Try to complete the problem in 25 minutes.

If you cannot complete the program in 25 minutes, you can watch me solve the problem in a text editor.