没有,二维数组那就用循环遍历吧。
public static void main(String[] args)// NOCHECKSTYLE
{
int m = 4;
int n = 5;
Integer array[][] = new Integer[m][n];
Listlist_array = Arrays.asList(array);
List> list_integer = new ArrayList
>();
for (int i = 0; i < list_array.size(); i++)
{
list_integer.add(Arrays.asList(list_array.get(i)));
}
for (ListinnerList : list_integer)
凳老蔽 枣州 {
含逗 for (Integer value : innerList)
{
System.out.print(value + " ");
}
System.out.println();
}
}
ArrayList
问题是干嘛非要转不可,ArrayList底层也是数组啊