核心方法使用toArray()方法(无参数)这是最简单直接的方法,但它有一个重要的陷阱,语法:Object[]array=arrayList.toArray();示例:importjava.util.ArrayList;impo...