 |
 |
 |
 |
 |
 |
 |
 |
 |
|
|
Now what values are printed?
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
final int
ARRAY_SIZE = 5; // Named
|
|
constant
|
|
|
double[]
temps;
|
|
|
temps =
new double[ARRAY_SIZE];
|
|
|
int m;
|
|
|
. . . . .
|
|
|
for (m =
temps.length-1; m >= 0; m--)
|
|
|
System.out.println(“temps[“ + m + “] = ”
+
|
|
temps[m]);
|
|
|
|
|
|
100.0 100.2
100.4 100.6 100.8
|
|
|
|
|
 |
|
|
temps[0] temps[1] temps[2]
temps[3] temps[4]
|
|
|
|
|
|
|