// The following comparators should go inside class Person:	


	/** Comparator for comparing two persons by alphabetical order of name
	 */
	public static class CompareByName implements Comparator
	{
		/** Compare two objects (which must both be Persons) by last name,
		 *	with ties broken by first name
		 *
		 *	@param person1 the first object
		 *	@param person2 the second object
		 *	@return a negative number if person1 belongs before person2 in
		 *			alphabetical order of name; 0 if they are equal; a
		 *			positive number if person1 belongs after person2
		 *
		 *	@exception ClassCastException if either parameter is not a
		 *			   Person object
		 */
		public int compare(Object person1, Object person2)
		{
			return person1.toString().compareTo(person2.toString());
		}
		
		/** Compare two objects (which must both be Persons) by name
		 *
		 *	@param person1 the first object
		 *	@param person2 the second object
		 *	@return true if they have the same name, false if they do not
		 *
		 *	@exception ClassCastException if either parameter is not a
		 *			   Person object
		 */
		public boolean equals(Object person1, Object person2)
		{
			return compare(person1, person2) == 0;
		}
	}
	
	/** Comparator for comparing two persons by order of zip code
	 */
	public static class CompareByZip implements Comparator
	{
		// THE WRITING OF THIS CODE IS LEFT AS AN EXERCISE TO THE STUDENT
	}

	
	
	  

