public class packageTest
{
/**
* @param args
*/
public static void main(String[] args)
{
// TODO Auto-generated method stub
Employee harry1 = new Employee("xiongxinfang",10000,1987,10,1);
Employee harry2 = harry1;
Employee harry3 = new Employee("xiongxinfang",10000,1987,10,1);
Employee bob = new Employee("hello ",18464,1987,10,10);
System.out.println("harry1 == harry2 :" + (harry1 == harry2));
System.out.println("harry1 == harry3 :" + (harry1 == harry3));
System.out.println("harry1.equal(harry3)" + harry1.equals(harry3));
System.out.println("harry1.equal(bob)" + harry1.equals(bob));
System.out.println("bob toString" + bob.toString());
System.out.println("bob hashcode" + bob.hashCode());
System.out.println();
}
}