i m new to java and trying to lern the basics. i have understood what FOR LOOP is but i cant understand the logic to put while mking a programme i have tried to understand from different books how the FOR LOOP works but cant mke programme as i desire can any one send me detailed and simple notes to understand FOR LOOP operation thanks amir
compile and run this... it counts from 1 to 10 because of the for loop. "i is set to "1" for( int i = 1 ; and is incremented by 1 each "loop" i++ ); until it is "<= 10" i <= 10 ; then the loop terminates.
[This message has been edited by Greg Harris (edited August 14, 2001).]