Search:

Type: Posts; User: javapenguin

Search: Search took 0.12 seconds.

  1. Replies
    5
    Views
    1,278

    [SOLVED] Re: For Loop not working correctly.

    Only if you started at index 0.

    Also, if you got rid of that ; after the for loop, then it might work better.

    for(int i = 0; i < noStudents - 1; i++);
    ...
  2. Replies
    5
    Views
    1,278

    [SOLVED] Re: For Loop not working correctly.

    Well, with your < noStudents-1, you're skipping the last student.

    Also, scoreLow is pretty high, being in the thousands.

    Also, you might want to try input.nextLine() for the student name.
    ...
Results 1 to 2 of 2