我以List<List<String>>
这种方式获取数据,
List<List<String>> repdata = [
["1185","R","4t","G","06","L","GT","04309","2546","2015","CF FE","01H1","20","23840","FF20"],
["1192","R","11t","H","06","L","SA","04772","8345","2015","BZ C8 FE","01D6","13","33390","LC13"]]
我想特别删除内部列表中索引 14 处的值。
例如:在这个内部列表数据中
[["1185","R","4t","G","06","L","GT","04309","2546","2015","CF FE","01H1","20","23840","FF20"]]
我想删除FF20,
并且必须对 中的所有内部列表重复此操作List<List<String>> repdata
。
所以,我的决赛List<List<String>>
是这样的,
List<List<String>> repdata = [
["1185","R","4t","G","06","L","GT","04309","2546","2015","CF FE","01H1","FF20","23840"],
["1192","R","11t","H","06","L","SA","04772","8345","2015","BZ C8 FE","01D6","13","33390"]
实际上这List<List<String>> repdata is = criteria.list()
来自休眠。就是这样改造的,
criteria.setResultTransformer(Transformers.TO_LIST);
我厌倦了这种方式删除,
List<List<String>> repdata = cr.list();
for( List<String> list: repdata ){
if( list.size() > 14){
list.remove(14);
}
}
但我不断得到UnsupportedOperationException
。
任何人都可以在这个问题上帮助我吗?