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"); } } }
huachun
tom的猫
望远
相关分类