View Single Post
  #7 (permalink)  
Old 08-31-2008, 04:39 PM
Norm's Avatar
Norm Norm is offline
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
Have you tried debugging your client code to see what strings it receives? Add a println() fto show receivedMessage after:
Quote:
receivedMessage = input.readLine();
Likewise on the server, display ALL the traffic.

A suggestion:
Instead of entering command strings separately in each program (you may type them differently any time), define them as constants (static) in one place and use the variable names in your code. Then you can be sure they are all referencing the same value for a String or whatever type the variable is.
Reply With Quote