public static Object getCopy(Object sArr){
Class c1 = sArr.getClass();
if(!c1.isArray()){
return null;
}
Class componentType = c1.getComponentType();
int iLength = Array.getLength(sArr);//import java.lang.reflect.Array;
int newlength = iLength*11;
Object newArray = Array.newInstance(componentType, newlength);
System.arraycopy(sArr, 0, newArray, 0, iLength);
return newArray;
}
int[] a = {1,2,3,4,5};
int[] iInt = (int[])getCopy(a);