public class Test { public static void main(String[] args) { int a = 4,b = 9,k = 0; while((a++)
A: 4
B: 1
C: 2
D: 3
A: 4
B: 1
C: 2
D: 3
举一反三
- public class Test{ public static void main(String[] args){ System.out.println(5/2); } }
- public class test { public static void main(String args[]) { int m=0; for ( int k=0;k<2;k++) method(m++); System.out.println(m); } public static void method(int m) { System.out.print(m); } }
- 阅读下面的程序 public class Test { public static void main(String[] args) { for(int x = 0 ; x <=3 ; x++){ continue; System.out.print(x%2); } } }
- 以下程序调试结果 public class test { public static void main(String args[]) { int i=1, j=3; while (j>0) { j--; i++; } System.out.println(i); }} A: 4 B: 2 C: 3 D: 0
- 请阅读下面的程序 Public class Test { public static void main(String[] args) { int a = 0; int b = 0; for (int i = 1; i <= 5; i++) {