【单选题】下列代码哪几行会出错?( ) 1) public void modify() { 2) int I, j, k; 3) I = 100; 4) while (I > 0) { 5) j = I * 2; 6) System.out.println(" The value of j is " + j); 7) k = k + 1;...
【单选题】下列代码哪几行会出错?() public void modify() { int I, j, k; I = 100; while (I > 0) { j = I * 2; stem.out.println(" The value of j is " + j); k = k + 1; I--; } }
【单选题】下列代码哪几行会出错 public void modify() { int I, j, k; I = 100; while ( I > 0 ) { j = I * 2; System.out.println (" The value of j is " + j ); k = k + 1; //java 中数值必须初始化 I--; } }