public class HelloWorld {
public static void main(String[] args)
{
HelloWorld s = new HelloWorld();
int[] score = {89,-23,64,91,119,52,73};
s.paixu(score);
}
public void paixu(int[] newscore)
{
for(int i=0;i<newscore.length;i++)
{
if(newscore[i]>newscore[i+1])
{
newscore[i+1]=newscore[i];
}
System.out.print(newscore[i]+"\n");
}
}
}
添加回答
举报
0/150
提交
取消