(String[] args)
| 1 | class ArrayInter { |
| 2 | |
| 3 | public static void main(String[] args) { |
| 4 | int[] a = new int[3]; |
| 5 | set0(a, 123); |
| 6 | set1(a, 666); |
| 7 | set2(a, 987); |
| 8 | int[] b = a; |
| 9 | set2(b, 555); |
| 10 | int x = a[0]; |
| 11 | int y = a[1]; |
| 12 | int z = a[2]; |
| 13 | } |
| 14 | |
| 15 | static void set0(int[] arr, int v) { |
| 16 | arr[0] = v; |