call a method in the outer for loop and put the rest of the loops inthat method.then you just return from the new method if the inner if statementevaluates trueso:for{dooloop(...)void dooloop(...){for{if{for{ifreturn}