import java.util.Arrays;
public class HelloWorld {
//完成 main 方法
public static void main(String[] args) {
int[] scores = {89,-23,64,91,119,52,73};
HelloWorld a = new HelloWorld();
a.Arrays(scores);
}
void Arrays(int[] scores) {
Arrays.sort(scores);
int num=1;
for(int i = scores.length-1; num <= 3 && i>=0;i--)
{
if(scores[i]<0)
continue;
else
num++;
System.out.println(scores[i]);
}
}
}
public class HelloWorld {
//完成 main 方法
public static void main(String[] args) {
int[] scores = {89,-23,64,91,119,52,73};
HelloWorld a = new HelloWorld();
a.Arrays(scores);
}
void Arrays(int[] scores) {
Arrays.sort(scores);
int num=1;
for(int i = scores.length-1; num <= 3 && i>=0;i--)
{
if(scores[i]<0)
continue;
else
num++;
System.out.println(scores[i]);
}
}
}