List转数组 eg: List<Product> products = new ArrayList<Product>(); Product[] array = products.toArray(new Product[products.size()]);