请阅读下面的程序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 < length - 1; i++) { for (int j = 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 23:19:10