我目前正在尝试将字符串数组的ArrayList保存为字符串数组的ArrayList。下面的代码显示了我正在尝试的基本内容。ArrayList<ArrayList<String>> groupCollection= new ArrayList<ArrayList<String>>();
ArrayList<String> m
我已经创建了一个字符串ArrayList,将字符串添加到其中。但是,我想要一个允许我向此arrayList添加更多字符串的方法,以及另一个允许显示此arrayList的方法。我的代码只打印一个空数组列表 public static void main(String[] args) {
viewArrayList(); //prints a em
如果我想使用arraylist来填充java jtable(swing),那么使用arraylist是个好主意吗?public ArrayList<String> getinformationforthetable() { ArrayList<String> data= new ArrayList<String>(); s = n