张盼 发表于 2014-7-23 22:53 这个题建议你从新做吧,ch可能会重复,不能作为键 Map集合的遍历方式有两种,一种是通过键获取值,一种是通 ...
花花公子 发表于 2014-7-23 23:56 我觉得用HashMap好一点,保证唯一性。
xwh1230 发表于 2014-7-24 20:14 TreeMap不也能保证唯一性么?