关于return问题 100分求救
public List search() {
super.search();
System.out.println("测试开始!");
System.out.println("LISTDATAMODEL.size():"+LISTDATAMODEL.size());
for (int i = 0; i < LISTDATAMODEL.size(); i++) {
tfeeinf = new TFeeinf();
tfeeinf = (TFeeinf) LISTDATAMODEL.get(i);
System.out.println("tfeeinf:"+tfeeinf.getId().getPaymentDt());
System.out.println("LISTDATAMODEL:"+LISTDATAMODEL.get(i).getId().getPaymentDt());
if(i>=1){
if(tfeeinf.getId().getPaymentDt()==LISTDATAMODEL.get(i-1).getId().getPaymentDt()){
System.out.println("开始");
}
else{
System.out.println("有新的值了");
TFeeinf aTFeeinf = new TFeeinf();
LISTDATAMODEL.add(i,aTFeeinf);
//在这一行如果不加上return LISTDATAMODEL;或者break就会有问题return LISTDATAMODEL;
}
}
}
return LISTDATAMODEL;
}