posted 11 years ago
The problem is in your client program,you are not calling the startServer method (line 08). Another problem you would have is , on the client side you are using an writeBytes() which would not add a terminating new line ,whereas you are expecting
newline terminate string by using readLine() . to fix it you can append the new line manually before writing to the output stream (line 25 "+"\n" )
Since you are dealing with just strings, i think an alternative better way to handle it would be to just use a PrintWriter
~naren<br /> scjp1.4<br /> scwcd1.4