Which three are
valid replacements for foo so that the program will compiled and run?
public class ForTest {
public static void main(String[] args) {
int[] arrar = {1,2,3};
for ( foo ) {
}
}
}
A.
int i: array
int i: array
B.
int i = 0; i < 1; i++
int i = 0; i < 1; i++
C.
;;
;;
D.
; i < 1; i++
; i < 1; i++
E.
; i < 1;
; i < 1;
Nessun commento:
Posta un commento