跪求答案啦~
用带参带返回值的方法怎么做?
用带参带返回值的方法怎么做?
2015-04-06
package com.imooc; import java.util.Arrays; public class App8_1 { public static void main(String[] args) { int[] scores = {89,-23,64,91,119,52,73}; App8_1 a=new App8_1(); a.x(scores); //x(scores); } public int x(int[] scores){ Arrays.sort(scores); for(int i = scores.length - 1;i>=0;i--){ System.out.println(scores[i]); } return 0; } }
举报