记录一下如何转换List和Array类型
将List转换为Array
List<String> stringList = new ArrayList<>();
Sring[] stringArray = new String[stringList.size()];
stringList.toArray(stringArray);
将Array转换为List
Integer[] spam = new Integer[] { 1, 2, 3 };
Arrays<Integer>.asList(spam);