Java Array Create toArray(T... items)

Here you can find the source of toArray(T... items)

Description

Small syntactical helper.

License

Open Source License

Parameter

Parameter Description
T a parameter
items a parameter

Declaration

public static <T> T[] toArray(T... items) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//www. jav a  2s.  co m
     * Small syntactical helper.
     * @param <T>
     * @param items
     * @return
     */
    public static <T> T[] toArray(T... items) {
        return items;
    }
}

Related

  1. toArray(String str)
  2. toArray(String str)
  3. toArray(String str, String split)
  4. toArray(String string)
  5. toArray(String text)
  6. toArray(T... items)
  7. toArrayClass(String className)
  8. toArrayDouble(final int[] array)
  9. toArrayElement(String s)