public class Insert { public static int[] insert(int[] a,int pos,int val) { assert a != null; int[] new_a = new int[a.length + 1]; for(int i=0;i