Results 1 to 3 of 3

Thread: iterator issues

  1. #1
    orchid's Avatar
    orchid is offline Member
    Join Date
    Apr 2007
    Location
    Midwest
    Posts
    60
    Rep Power
    0

    Unhappy iterator issues

    Why won't this iterate to 99? Maybe I am looking at it too long.
    Java Code:
      int count = 0;
       for (int i = 0; i < 100; i++); {
            count++;
        }
         System.out.println(count);
      }
    It only prints out 1...

  2. #2
    orchid's Avatar
    orchid is offline Member
    Join Date
    Apr 2007
    Location
    Midwest
    Posts
    60
    Rep Power
    0

    Default never mind

    doh !!:rolleyes:
    one too many semi-colons. I have put in too many hours this week.
    sorry

  3. #3
    g25451 is offline Member
    Join Date
    Aug 2008
    Posts
    11
    Rep Power
    0

Similar Threads

  1. Implementing Iterator
    By Harb in forum New To Java
    Replies: 13
    Last Post: 11-21-2009, 08:25 PM
  2. Issues with Jva I.O
    By Annatar01 in forum New To Java
    Replies: 0
    Last Post: 02-08-2008, 02:16 AM
  3. Iterator
    By eva in forum New To Java
    Replies: 0
    Last Post: 01-31-2008, 03:07 PM
  4. using Iterator with Vector
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-13-2007, 11:52 AM
  5. How to use an Iterator in java
    By lenny in forum New To Java
    Replies: 2
    Last Post: 07-25-2007, 08:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •