Demo for Java equals, hashCode and toString