/*TreeSet<Integer> a2 = new TreeSet<Integer>();
a2.add(1);
a2.add(6);
a2.add(8);
a2.add(3);*/
//printoo(a2);
System.out.println("Hello World!");
}
public static void printoo(TreeSet< Student> a)
{
Iterator<Student> it = a.iterator();
while(it.hasNext())
{
sop(it.next());
}
}
}
class Comp implements Comparator<Persion>//为什么String不能编译通过?
{
public int compare(Persion s1, Persion s2)
{
return s1.getName().compareTo(s2.getName());
}
}
class Persion
{
private String name;
//private int age ;
Persion(String name){//, int age
this.name = name;
//this.age = age;
}
public void setName(String name){