Looping through 2 Lists at once

前端 未结 7 435

I have two lists that are of the same length, is it possible to loop through these two lists at once?

I am looking for the correct syntax to do the below



        
7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 11:16

    It'll be much simpler to just do it in a plain old for loop instead...

    for(int i=0; i

提交回复
热议问题