帮我看下这程序哪里错了?
//file name:PAIXU_.javaimport *;
public class PAIXU_
{
public static void main(String[] args) {
int[] array = new int[10];
System.out.println("输入一组数:");
for(int i=0;i< array.length;i++) {
BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));
array[i] = Integer.parseInt(stdin.readLine());
}
System.out.printf("原始数据为:\t");
Display(array);
System.out.printf("\n");
Shengxu(array);
System.out.printf("升序后数据为:\t");
Display(array);
System.out.printf("\n");
Jiangxu(array);
System.out.printf("降序后数据为:\t");
Display(array);
System.out.printf("\n");
}
public static void Shengxu(int[] array) {
for(int i=0;i<array.length;i++) {
for(int j=array.length-1;j>i;j--) {
if(array[j]>array[j-1]) {
int temp = array[j];
array[j] = array[j-1];
array[j-1] = temp;
}
}
}
}
public static void Jiangxu(int[] array) {
for(int i=0;i<array.length;i++) {
for(int j=array.length-1;j>i;j--) {
if(array[j]<array[j-1]) {
int temp = array[j];
array[j] = array[j-1];
array[j-1] = temp;
}
}
}
}
public static void Display(int[] array) {
for(int element:array) {
System.out.printf("%2d",element);
}
}
}