ArrayList<String> ArrayLister=new ArrayList<>(){ArrayLister.add("Hi")}; String[] array=ArrayLister.toArray(String[]);