public class Main { public static void main(String[] argv) { int[] a = new int[1]; a[0] = 1; add(a); System.out.println(a[0]); } static void add(int[] a) { a[0] = a[0] + 2; } } // 3