You should use
pos = new int[]{1,2,3};
You can only use the abbreviated syntax int[] pos = {0,1,2};
at variable initialization time.
private int[] values1 = new int[]{1,2,3,4};
private int[] values2 = {1,2,3,4}; // short form is allowed only at variable initialization
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…