java - Running 2 enhanced for loops at the same time -



java - Running 2 enhanced for loops at the same time -

is possible have 2 enhanced loops running @ same time below?

loops1 list of integers 1,2,3 loops2 list of integers 5,6,7 for(loop1 : loops1 && loop2 : loops2) { system.out.println(loop1 + loop2); } output in way : 1 5 2 6 3 7

any input helpful.

thanks !!!

is possible have 2 enhance loops running @ same time

it's not possible , cannot imagine situation when needed. documentation found here.

java for-loop foreach

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -