我有以下内容Set
在爪哇中:
Set< Set<String> > SetTemp = new HashSet< Set<String> >();
我想将其数据移动到ArrayList
:
ArrayList< ArrayList< String > > List = new ArrayList< ArrayList< String > >);
可以这样做吗?
移动数据HashSet
to ArrayList
Set<String> userAllSet = new HashSet<String>(usrAllTemp);
List<String> usrAll = new ArrayList<String>(userAllSet);
Here usrAllTemp
is an ArrayList
,它有一些值。
同样的方式usrAll(ArrayList)
从中获取值userAllSet(HashSet)
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)