下面程序是采用冒泡法对数组元素按小到大的顺序排序,请将程序填写完整。public class ArraySort {
public static void main(String[] args) {
int[] a = new int[]{21,34,211,15,92,68,89,794,11,863};
int temp;
for (int i = 0; i < (1)_____ ; i++) {
for (int j = i; j < (2)_____ ; j++) {
if(a[j] > (3)__________________ ) {
temp = a[j];
(4)__________________
(5)__________________
}
}
}
for (int i = 0; i < a.length; i++) {
System.out.println(a[i]+" ");
}
}
}