View Single Post
  #1 (permalink)  
Old 07-20-2007, 04:45 PM
fred fred is offline
Member
 
Join Date: Jul 2007
Posts: 41
fred is on a distinguished road
help with basic example
I have this code:
Code:
for(int i=0; i<100; i++) { str = br.readLine(); System.out.println("String"+ i + str); if(str.equals("stop")) break; }
If I remove the System.out.println, it is going for an infinite loop.
why?
Reply With Quote
Sponsored Links