Hello,
I use a scanner to read data from a socket. I do not know how many rows the server will send me back, I am thus:
However, this loop blocks the hasNextLine () last name, which must return false. I do not know why. How to prevent it from blocking?Code:while(monScanner.hasNextLine()) { String tm = monScanner.nextLine(); / / Processing }
Thank you
Fred
Bookmarks