不行 An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. -- http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
直接做一个
for (int i = 0; i < array.length; i++)
{
ArrayList.add(array(i));
}以后就对ArrayList进行操作吧
而且实际上ArrayList也是在内部自己重新拷贝的数组
=============================================
需要重新生成一个更大的数组,再使用上面的方法将当前数组复制进去,ArrayList 的内部就是采用这种方法实现的。
An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed.
--
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html