/**
 * An application that illustrates class/private accessibilty
 */
public class PrivateAccessibility2
{
    /**
     * The entry point of the application
     *
     * @param args   The command line arguments
     */
    public static void main(String[] args)
    {
			Signature         adamses, bernstdh;


			adamses = new Signature("Prof. Elizabeth Adams",
				"adamses@jmu.edu",
				"www.cs.jmu.edu/users/adamses/",
				"The search for truth is more "+
				"precious than its possession");

			bernstdh= new Signature("Prof. David Bernstein",
				"bernstdh@jmu.edu",
				"www.cs.jmu.edu/users/bernstdh/",
				"Everything should be made as simple "+
				"as possible, but not simpler.");

			if (adamses.hasSameEmailAddressAs(bernstdh)) 
			{
		    System.out.println("They have the same email address.");
			} 
			else 
			{
		    System.out.println("They have different email address.");
			}

			System.out.println("\n\n");
			System.out.println(adamses);

			System.out.println("\n\n");
			System.out.println(bernstdh.toString());
	  }
}
