public class test { void f() { int k1 = 1; int k2 = 2; int[] array = new int[]{k1, k2}; System.out.print(k1); } }