list里面放的是对象,怎么取出来? 15
List<CpuReportlVo>filelist=newArrayList<CpuReportlVo>();for(inta=0;a<values.length;a+...
List<CpuReportlVo> filelist=new ArrayList<CpuReportlVo>();
for(int a=0;a<values.length;a++){
CpuReportlVo ivo=new CpuReportlVo();
ivo.setDirectory(name);
ivo.setFreePercent(100-Double.parseDouble(values[a]));
ivo.setTimestamp(interval.get(a));
ivo.setUsedPercent(Double.parseDouble(values[a]));
ivo.setTime(interval.get(a));
ivo.setNum(Double.parseDouble(values[a]));
ivo.setHost(name);
filelist.add(ivo);
}
如上,我如何取出来filelist中的每一个元素呢? 展开
for(int a=0;a<values.length;a++){
CpuReportlVo ivo=new CpuReportlVo();
ivo.setDirectory(name);
ivo.setFreePercent(100-Double.parseDouble(values[a]));
ivo.setTimestamp(interval.get(a));
ivo.setUsedPercent(Double.parseDouble(values[a]));
ivo.setTime(interval.get(a));
ivo.setNum(Double.parseDouble(values[a]));
ivo.setHost(name);
filelist.add(ivo);
}
如上,我如何取出来filelist中的每一个元素呢? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询