public class Driver {
public static ArrayList<ArrayList<Integer>> theData; // ArrayList to store the有趣的是,当我试图找出这一点时,我测试了getData方法是否正确工作,所以当方法在getData中的while循环中迭代时,我打印了数组的大小-theData,以及数组theData中数组的大小,您知道的是,
我想知道是否有任何方法将"void“对象传递给ArrayList。例如,我希望通过将一个空对象引用为list1.put(doThis()),将其传递给数组列表;The method add(Object) in the type ArrayList<Object> is not applicable for