日期:2014-05-20 浏览次数:20607 次
import java.util.*;
public class Test_1
{
public static void main(String[] args)
{
int[] array = {8, 40, 20, 25, 30, 11, 9, 50};
Arrays.sort(array);
for(int i<array.length; i>=0; i--)
{
System.out.print(array[i] + " ");
}
}
}
for(int i = array.length -1 ; i>=0; i--)
{
System.out.print(array[i] + " ");
}