Originally posted by Sam Bluesman:
but if i place a System.out.println(i) outside the while loop but still in the for loop nothing happens??
Two possible scenarios for this... either the for loop never executes or the while loop never finishes.
Put debugging messages before and after the for loop. Put debugging messages before and after the while loop. This should give you a hint as to what is going on...
Henry