Java Array Create array(T... ar)

Here you can find the source of array(T... ar)

Description

array

License

Apache License

Declaration

@SafeVarargs
    public static <T> T[] array(T... ar) 

Method Source Code

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

public class Main {
    @SafeVarargs
    public static <T> T[] array(T... ar) {
        return ar;
    }//from  w ww.  j  a v a2 s  .co m

    public static int[] array(int... ar) {
        return ar;
    }
}

Related

  1. array(int[] array, int index)
  2. array(Object... objects)
  3. array(Object... val)
  4. array(String str)
  5. array(String... strings)
  6. array(T... elements)
  7. array(T... elems)
  8. array(T... ts)
  9. array(T... values)