public class Main {
public static void main
(String[] args
) { int a = 1;
int[] b = new int[]{ 1, 2, 3 };
System.
out.
printf("%d %d %d\n", a, b
[2], c
); test(a, b, c);
System.
out.
printf("%d %d %d\n", a, b
[2], c
); }
public static void test
(int a,
int[] b,
Integer c
) { a = 10;
b = new int[]{ 10, 20, 30 };
}
}
cHVibGljIGNsYXNzIE1haW4gewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIGludCBhID0gMTsKICAgICAgICBpbnRbXSBiID0gbmV3IGludFtdeyAxLCAyLCAzIH07CiAgICAgICAgSW50ZWdlciBjID0gbmV3IEludGVnZXIoMSk7CiAgICAgICAgCiAgICAgICAgU3lzdGVtLm91dC5wcmludGYoIiVkICVkICVkXG4iLCBhLCBiWzJdLCBjKTsKICAgICAgICB0ZXN0KGEsIGIsIGMpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRmKCIlZCAlZCAlZFxuIiwgYSwgYlsyXSwgYyk7CiAgICB9CiAgICAKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCB0ZXN0KGludCBhLCBpbnRbXSBiLCBJbnRlZ2VyIGMpIHsKICAgICAgICBhID0gMTA7CiAgICAgICAgYiA9IG5ldyBpbnRbXXsgMTAsIDIwLCAzMCB9OwogICAgICAgIGMgPSBuZXcgSW50ZWdlcigxMCk7CiAgICB9Cn0=