public static void main(String[] args) {
List<String> lst = new ArrayList();
lst.add("赵云 ");
lst.add("张飞");
//X: String[] strA = (String[]) lst.toArray();
// List转数组:toArray(必须带个参数)
String[] strA = (String[]) lst.toArray(new String[0]);
for (String s : strA) {
System.out.println(s);
}
}