static A[] newObjectArrayOfSameType(A[] a, int n default a.length) { ret (A[]) Array.newInstance(a.getClass().getComponentType(), n); }