81,094
社区成员
发帖
与我相关
我的任务
分享
<logic:iterator id = "user" name = "XXfrom" property = "userlist">
<html:text name = "user" property = "aaaa" />
<logic:iterator id = "topic" name = "user" property = "topiclist">
<html:text name = "topic" property = "aaaa" />
</logic:iterator>
</logic:iterator>
<logic:iterator id = "user" name = "XXfrom" property = "userlist">
<html:text name = "user" property = "aaaa" />
<logic:iterator id = "topic" name = "user" property = "topiclist">
<html:text name = "topic" property = "aaaa" />
</logic:iterator>
</logic:iterator>
import java.util.*;
public class Test{
public static void main(String[] args){
ArrayList al1 = new ArrayList ();
al1.add(1);
al1.add(2);
al1.add(3);
ArrayList al2 = new ArrayList ();
al2.add("a");
al2.add("b");
al2.add("c");
Iterator it2=al2.iterator();
for(Iterator it = al1.iterator() ;it.hasNext() ;){
System.out.println (it.next()+"*********"+it2.next());
}
}
}