Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    5
    Views
    1,082

    Re: Help with Loop and int count

    Wait until you have written another 10000 lines of code. I'm sure you will get one eventually.
    Try this:

    for(int count=0; count<2; count++);
    System.out.println("count="+count); //...
  2. Replies
    5
    Views
    1,082

    Re: Help with Loop and int count

    Statements are ended by the ; character. The for statement ends at the ;
    the next statement following the for is not part of the for.

    NOTE: The statements in an for statement (and other loops...
Results 1 to 2 of 2