Java Object Array Create toObjectArray(T[] v)

Here you can find the source of toObjectArray(T[] v)

Description

to Object Array

License

Apache License

Declaration

public static <T> Object[] toObjectArray(T[] v) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static <T> Object[] toObjectArray(T[] v) {
        Object[] newv = new Object[v.length];
        for (int i = 0; i < v.length; i++)
            newv[i] = v[i];/*from  w  ww  .  j  a v  a  2  s  .  c o m*/
        return newv;
    }
}

Related

  1. toObjectArray(int[] array)
  2. toObjectArray(int[] oldArray)
  3. toObjectArray(Object array)
  4. toObjectArray(String[][] originalarray)
  5. toObjectArray(T... t)
  6. toObjectArraySquareMatrix(T[][] matrixT)