Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Arraylist我有一个结果,它以字符串数组列表的数组列表的形式返回。我需要将列表中的数据/对象转储到外部文件。
Arraylist
ArrayList<ArrayList<ArrayList<String>>>
for (ArrayList<ArrayList<String>> list1 : myReturnedResult) for (ArrayList<String> list2 : list1) for (String s : list2) fout.println(s);
只要您设法创建要写入的文件(fout),就应该这样做。
fout