public static void main(String str[]){
Scanner in = new Scanner(System.in);
Set ts = new TreeSet();
int i = 10;
while(i>0){
ts.add(in.nextInt());
i--;
}
//TreeSet自动排列顺序
Iterator irt = ts.iterator();
while(i<10){
if(i==0||i==9){
System.out.println(irt.next());
}else{
irt.next();
}
i++;
}
}
谁冒充我啊
你好,我是甘志刚!!!