Below you will find pages that utilize the taxonomy term “tips”
Posts
For loops for fun and profit
For loops aren’t rocket science by any stretch of the imagination, but perhaps some wayfaring programmer will find the following enlightening.
What appears to be at first basic and fundamental can belie the incredible flexibility offered. Below are a few examples related to that most common of control structures, the for loop.
These examples apply to most variations of C and C-based languages as well as Java.
Infinite loop:
for(;;) { // Works a treat for main event loops.