我有arraylist说,
List<CalendarOutput> RecuringEve= Recurrent.eventView(component,begin,end);
我想打印数组列表,
CalendarOutput caldavOutput = ListUtil.getReComponent(component, RecuringEve);
这里我有方法 getReComponent(component, RecuringEve)
public CalendarOutput getReComponent(Component component, List recuringEve) {
for(int i = 0; i < recuringEve.size(); i++) {
CalendarOutput.DTSTART_FULL=recuringEve.get(i).toString();
}
retrun CalendarOutput;
}
该方法必须一一返回值。但它只返回 Arraylist 的最后一个值。怎么能一一返回值