This preview shows page 1. Sign up to view the full content.
Unformatted text preview: BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); sentence = inFromUser.readLine(); outToServer.writeBytes(sentence + '\n'); modifiedSentence = inFromServer.readLine(); System.out.println("from server: " + modifiedSentence); clientSocket.close(); } }...
View Full Document
This note was uploaded on 07/14/2011 for the course COP 4610L taught by Professor Staff during the Spring '09 term at University of Central Florida.
- Spring '09