JavaDude32
Programmer
I have a problem of freezing in my Client program when it attempts to read from a server. I've narrowed the problem down to one line I think, except I don't know how to fix it or why it's freezing. I've tried using a int as to make the code only try so many times, but it freezes in the while statement as the int (c) never prints to the screen. Any help or info on this would be very much appreciated.
while(((theLine = theReader.readLine()) != null) {
System.out.println(c);
theOutput.append("Server: " + theLine);
}
while(((theLine = theReader.readLine()) != null) {
System.out.println(c);
theOutput.append("Server: " + theLine);
}