Sponsored White Papers, Webcasts, and Downloads
TechRepublic Resources
- Achieve seamless socket programming in Java
- A minor typo?Shouldn't "in.readLine" be stored in the variable "fromServer"? We are checking if "fromServer" is "Bye.", but we do not set its value to what we receive from the server.Should the code look like:String fromServer = "";while ((userInput = stdIn.readLine) != null) { out.printlnuserInput; fromServer = in.readLine;...
- Tags: programming, Java, rehanali@..., String fromServer, Bye
- Discussion threads 2007-05-10
- << Previous
- page 1 of 1
- Next >>