【发布时间】:2011-07-30 09:12:29
【问题描述】:
好的,我正在努力将大约 120 个左右特定数组的列表添加到数组列表中 (这些只是假设的值和名称,但概念相同
private ArrayList<int[]> listofNames = new ArrayList<int[]>();
private static int[] NAME_0 = {x, x, x};
private static int[] NAME_1 = {x, x, x};
private static int[] NAME_2 = {x, x, x};
private static int[] NAME_3 = {x, x, x};
有没有办法可以使用 for 循环通过 NAME_0 说出 NAME_120?
【问题讨论】:
标签: java arrays loops for-loop arraylist