I am doing a sever/client chat program. I wish to let the user to enter their entire name through input dialog and I want to use the name that entered by the user in client.java to be use in server.java so that it will shows "username connected to server". I wish to know how to get the username that entered by the user in client to be use in server. Hope anyone can answer me. Thanks.