Source Code Structure

Your project should contain following files:

  1. PatronDriver.java: This code has the driver portion to get input from the user, create Patron objects, and compare them.
  2. Patron.java: Create a class Patron implementing the Comparable interface (public class Patron implements Comparable).
  3. Name.java: Create a class Name implementing the Comparable interface (public class Name implements Comparable).