16 lines
244 B
Text
16 lines
244 B
Text
/* Test accessing arrays */
|
|
class Main {
|
|
void main() {
|
|
int[] x;
|
|
int i;
|
|
x = new int[3];
|
|
x[0] = 3;
|
|
x[1] = 4;
|
|
x[2] = 5;
|
|
i = x[0] + x[1] + x[2];
|
|
x[2]=55;
|
|
write(i);
|
|
writeln();
|
|
}
|
|
}
|
|
|