String[] str = new String[list.size()]; str = (String[]) list.toArray(str); Use like this.