1、javabean转数组,先转list再转数组
product = new product();
List list = new ArrayList();
list.add(product);
list.toArray();
2、List list = Arrays.asList()
http://blog.csdn.net/chenleixing/article/details/43775127
Arrays.asList()
asList()返回的是arrays中“私有的”(源码)终极ArrayList类型,它有set,get,contains方法,但没有增加和删除元素的方法,所以大小固定,会报错