int[] array=new int[5]; int[] array2=new int[]{1,2};

Read more of this post