hashset和hashmap的关系是不是说错了。hashset是继承collection类,hashmap继承自map类。这两不是继承关系,hashset他的底层是hashmap