4 ms·
A static function in Java is essentially just a function. Also I have no idea what functions being associated with classes has to do with breaking out of loops.
by pirocks 6y ago
A static function in Java is essentially just a function. Also I have no idea what functions being associated with classes has to do with breaking out of loops.
- gpderetta 6y agoencapsulate your nested loops in a function and return to exit multiple loops at the same time. Having nested lightweight functions allows minimal syntactical overhead compared to plain loops, although still not zero.