Java Array Create arrayOf(T... objects)

Here you can find the source of arrayOf(T... objects)

Description

array Of

License

Apache License

Declaration

@SafeVarargs
    public static <T> T[] arrayOf(T... objects) 

Method Source Code

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

public class Main {
    @SafeVarargs
    public static <T> T[] arrayOf(T... objects) {
        return objects;
    }/*w  w  w. j  a  va  2  s  .c  om*/
}

Related

  1. array(T... values)
  2. arrayConstructor(int len)
  3. arrayOf(int... values)
  4. arrayOf(long... values)
  5. arrayOf(T... elements)
  6. ArrayToArray(Integer obj, Integer[] objArray)
  7. ArrayToObject(byte[] values)
  8. newArray()
  9. newArray(Class elementType, int length)