Java Array Create newArray(String... args)

Here you can find the source of newArray(String... args)

Description

new Array

License

Apache License

Declaration

public static String[] newArray(String... args) 

Method Source Code

//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;
    }
}

Related

  1. newArray()
  2. newArray(Class elementType, int length)
  3. newArray(int length, double start, double increment)
  4. newArray(Object obj, int size)
  5. newArray(Object src, int len)
  6. toArray(String source, String delimiter)
  7. toArray(String str)
  8. toArray(String str)
  9. toArray(String str, String split)