唐杨 发表于 2012-8-22 18:57 代码是有问题的,而且最后还少了两个 大括号.} } 你的compareTo方法写的有问题.
冯超 发表于 2012-8-22 19:05 package javatest2; import java.util.Iterator;