Create array from varargs - Android java.lang

Android examples for java.lang:Array Element

Description

Create array from varargs

Demo Code


public class Main {
  private static String[] array(String... items) {
    return items;
  }//from  w  w  w .  j a v a  2s.  c  o m
}

Related Tutorials