for-each loop) Analyze the following code:
public class Test {
public static void main(String[] args) {
double[] x = {2.5, 3, 4};
for (double value: x)
System.out.print(value + " ");
}
}
发布于 2021-02-15 03:24:34
【单选题】 A The program displays 2.5, 3, 4 B The program displays 2.5 3 4 C The program displays 2.5 3.0 4.0 D The program displays 2.5, 3.0 4.0