Simple program exploring passing by reference/value in Java