while(it.hasNext())
{
String s = it.next();
System.out.println(s);
}
}
}
class LenComparator implements Comparator<String>
{
public int compare(String o1,String o2)
{
int num = new Integer(o1.length()).compareTo(new Integer(o2.length()));//这种方式是以从小到大方式排,毕老师讲只要调换下o1和o2的位置就可以实现倒序排