245. 객체를 메서드에 넘겨 필드 바꾸기
다음 Java 프로그램의 실행 결과를 쓰시오.
1class Box {2int n = 1;3}45public class Main {6static void grow(Box b, int k) {7b.n = b.n * 2 + k;8}910public static void main(String[] args) {11Box box = new Box();12grow(box, 1);13grow(box, 3);14grow(box, 0);15System.out.println(box.n);16}17}