can't send messages correctly [chat]
I have almost finished a chat application, I am using ObjectOutputStream and Input. The problem I have is when Mike writes a message it shows Mike :"the message" on Mikes screen, but on Nicks screen it shows null :"the message".
When Nick sends a message it shows null:"Other message" on his screen and null:"other message" on Mikes screen.
So I think it.s receiving sth wrong. Any ideas on how to get the message across correctly, with each name and message?
I can send some code but which part?