Words类中就有2个属性 String , int                Words data1 = new Words("密码",1);
Words data2 = new Words("曲线",1);
Words data0 = new Words("密码",1);
HashSet hashSet = new HashSet();
hashSet.add(data1);
hashSet.add(data2);
hashSet.add(data0);
     
               当插入data0时 是插不进去的因为
                  Words中重写了hashCode()方法
                  public int hashCode() {
  return content.hashCode();
 }
                 现在问题是 当插入data0时 虽然插不进去  但我想让data1的 int 属性++
                 就是 不把data0插进去 但要把 data1 改为("密码",2);
                 其实 就是想做个统计。(因为数据太多 普通循环运行太慢)
                    我重写equals方法时 在判断相等时 让num++ 但是 没有效果呀