【发布时间】:2012-10-19 19:36:47
【问题描述】:
在 Java 中,我无法将 Set<Set<String>> 转换为 List<List<String>>,然后用 Set<Set<String>> 的内容填充此列表
这是我的代码:
Set<Set<String>> treeComps = compExtractor.transform(forest); // fine
List<List<String>> components = new List<List<String>>(); // does not work
components.addAll(treeComps); // does not work
【问题讨论】:
标签: java list collections set