请教各位大大,关于使用collection的问题。
我想在collection里在装一些collection,请问我怎么把装在collection里的collection取出来,这是我装collection的代码:
Collection Rere = new ArrayList();
while (rst.next()) {
Collection Redata = new ArrayList();
ItemName ItemNa = new ItemName();
ItemNa.setIName(rst.getString(2));
Redata.add(ItemNa);
}
Rere.addAll(Redata);}请问我怎么把装在collection(Rere)里的collection(Redata)取出来,麻烦写一下代码,辛苦了,谢谢
Collection Rere = new ArrayList();
while (rst.next()) {
Collection Redata = new ArrayList();
ItemName ItemNa = new ItemName();
ItemNa.setIName(rst.getString(2));
Redata.add(ItemNa);
}
Rere.addAll(Redata);}请问我怎么把装在collection(Rere)里的collection(Redata)取出来,麻烦写一下代码,辛苦了,谢谢
...全文
相关推荐
Collection
社会 圈x脚本规则整理合并 感谢各位大佬的付出……
Mybatis中Collection集合标签的使用详解
主要介绍了Mybatis中Collection集合标签的使用详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
Mybatis中collection和association的使用区别详解
主要介绍了Mybatis中collection和association的使用区别详解,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
VB中Collection的使用方法
介绍了VB中集合,如何去何从建立集合对象的使用方法及实例操作
Collection使用
Collection使用


Web 开发
