java Set 后台for循环 jsp页面foreach循环 急急急急急急! 10
代码:Set<Object>targetInfo=newHashSet<Object>();Objectinfo[]=newObject[2];Useruser=null...
代码:
Set<Object> targetInfo = new HashSet<Object>();
Object info[] = new Object[2];
User user = null;
for(int i = 0;i < 10;i++){
info[0] = i;
user = 数据中读出的数据(类)
info[1] = user;
targetInfo.add(info);
} 展开
Set<Object> targetInfo = new HashSet<Object>();
Object info[] = new Object[2];
User user = null;
for(int i = 0;i < 10;i++){
info[0] = i;
user = 数据中读出的数据(类)
info[1] = user;
targetInfo.add(info);
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询