标签:分配 common [] ring mon 顺序 main war test
import java.util.List;
import com.google.common.collect.Lists;
public class TestList {
public static void main(String[] args) {
List<Integer> intList = Lists.newArrayList(1,2);
List<String> StrList = Lists.newArrayList("A","B","C");
int j=0;
for(int i=0;i<intList.size();i++){
if(j==StrList.size()) j=0;
System.out.println(StrList.get(j++)+"---"+intList.get(i));
}
}
}
标签:分配 common [] ring mon 顺序 main war test
原文地址:http://www.cnblogs.com/xhshic/p/7797675.html