List list = new ArrayList<>(); String[] array = list.toArray(new String[list.size()]);

请写出将List集合转换为数组的时候的语句