/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class MutableArray
{
private int[] values;
public int[] getValues() {
return values;
}
{
// your code goes here
MutableArray ma = new MutableArray();
assert ma.getValues() == null;
int[] arrayRef = ma.getValues();
assert arrayRef == null;
arrayRef = new int[5];
arrayRef[0] = 42;
assert arrayRef != null;
assert arrayRef[0] == 42;
assert ma.getValues() != null;
assert ma.getValues()[0] == 42;
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgTXV0YWJsZUFycmF5CnsKCXByaXZhdGUgaW50W10gdmFsdWVzOwogICAgcHVibGljIGludFtdIGdldFZhbHVlcygpIHsKICAgICAgICByZXR1cm4gdmFsdWVzOwogICAgfQoJCglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCgkJTXV0YWJsZUFycmF5IG1hID0gbmV3IE11dGFibGVBcnJheSgpOwogICAgICAgIGFzc2VydCBtYS5nZXRWYWx1ZXMoKSA9PSBudWxsOwogICAgICAgIAogICAgICAgIGludFtdIGFycmF5UmVmID0gbWEuZ2V0VmFsdWVzKCk7CiAgICAgICAgYXNzZXJ0IGFycmF5UmVmID09IG51bGw7CiAgICAgICAgCiAgICAgICAgYXJyYXlSZWYgPSBuZXcgaW50WzVdOwogICAgICAgIGFycmF5UmVmWzBdID0gNDI7CiAgICAgICAgYXNzZXJ0IGFycmF5UmVmICE9IG51bGw7CiAgICAgICAgYXNzZXJ0IGFycmF5UmVmWzBdID09IDQyOwogICAgICAgIAogICAgICAgIGFzc2VydCBtYS5nZXRWYWx1ZXMoKSAhPSBudWxsOwogICAgICAgIGFzc2VydCBtYS5nZXRWYWx1ZXMoKVswXSA9PSA0MjsKCX0KfQ==