请阅读下面的程序Public class Test {Public static void main(String] args) {Int ] a = { 2, 0, 4, 1, 8, 3, 5 };Int temp;For (int i = 0; i <A,length - 1; i++) {For (int j =A,length - 1; j > i; j--) {If (aj] < aj] - 1) {Temp = aj];Aj] = aj - 1];Aj - 1] = temp;}}}For (Integer i : a) {System.out.print(i);}}}下列选项中,哪个是程序的运行结果()
选项:
A:8543210
B:0123458
C:2041835
D:以上答案都不对
发布时间:2024-06-08 22:35:10