Here you can find the source of newArray(String... args)
public static String[] newArray(String... args)
//package com.java2s; //License from project: Apache License public class Main { public static String[] newArray(String... args) { String[] as = new String[args.length]; for (int i = 0; i < args.length; i++) { as[i] = args[i];/*w w w . j a va 2s . co m*/ } return as; } }