阅读下面的代码[br][/br]public static void main(String[] args) {[br][/br] Random random1 = new Random(10);[br][/br] Random random2 = new Random(10);[br][/br] for(int i=0;i[5;i++){
A: 3030130301
B: 5048132680
C: 3268023579
D: 1111111111
A: 3030130301
B: 5048132680
C: 3268023579
D: 1111111111
举一反三
- 阅读下面的代码[br][/br]public static void main(String[] args) {[br][/br] Random random1 = new Random(10);[br][/br] Random random2 = new Random(10);[br][/br] for(int i=0;i[5;i++){<br] System.out.print(random1.nextInt(5));[br][/br] }[br][/br] System.out.println();[br][/br] for(int i=0;i[5;i++){<br] System.out.print(random2.nextInt(5));[br][/br] }[br][/br]} 下列选项中,程序的输出结果是()[br][/br] A. B. C. D. A: 3030130301 B: 5048132680 C: 3268023579 D: 1111111111
- 阅读下面的代码,输出结果是( ) public static void main(String[] args) { Random random1 = new Random(10); Random random2 = new Random(10); for(int i=0;i<5;i++){ System.out.print(random1.nextInt(5)); } for(int i=0;i<5;i++){ System.out.print(random2.nextInt(5)); } }
- 阅读下面的代码 public static void main(String[] args) { Random random1 = new Random(10); Random random2 = new Random(10); for(int i=0;i<5;i++){ System.out.print(random1.nextInt(5)); } System.out.println(); for(int i=0;i<5;i++){ System.out.print(random2.nextInt(5)); } } 下列选项中,程序的输出结果是
- 阅读下面的代码,输出结果是() public static void main(String[] args) { Random random1 = new Random(10); Random random2 = new Random(10); for(int i=0;i<5;i++){ System.out.print(random1.nextInt(5)); } for(int i=0;i<5;i++){ System.out.print(random2.nextInt(5)); } } A: 3.030130301E9 B: 5.04813268E9 C: 3.268023579E9 D: 1111111111
- 请阅读下面的程序 [br][/br]public class Test { [br][/br] public static void main(String[] args) { [br][/br] int a = { 2, 0, 4, 1, 8, 3, 5 }; [br][/br] int temp;[br][/br] for (int i = 0; i [ a.length - 1; i++) { <br] for (int j = a.length - 1; j > i; j--) {[br][/br] if (aj [ aj - 1) { <br] temp = aj; [br][/br] aj = aj - 1; [br][/br] aj - 1 = temp; [br][/br] }[br][/br] }[br][/br] }[br][/br] for (Integer i : a) {[br][/br] System.out.print(i); [br][/br] }[br][/br] }[br][/br]} [br][/br]下列选项中,哪个是程序的运行结果() A: 8543210 B: 0123458 C: 2041835 D: 以上答案都不对