Java Utililty Methods Object Array Create

List of utility methods to do Object Array Create

Description

The list of methods to do Object Array Create are organized into topic(s).

Method

Object[]toObjectArray(T[] v)
to Object Array
Object[] newv = new Object[v.length];
for (int i = 0; i < v.length; i++)
    newv[i] = v[i];
return newv;
Object[][]toObjectArraySquareMatrix(T[][] matrixT)
to Object Array Square Matrix
int size = matrixT.length;
Object[][] arObj = new Object[size][size];
for (int i = 0; i < size; i++) {
    for (int j = 0; j < size; j++) {
        arObj[i][j] = (Object) matrixT[i][j];
return arObj;
...