Your need to run the command line
java ChatServer
This starts the server listening on the port number 8989, you can see the following output in the server once it started:
Chat Sever is listening on port 8989
The server is waiting for new clients forever so you have to Ctrl+C to terminate it.
Your need to run the command line
java ChatClient
The Client's console:
Connected to chat server
No other users connected
Enter your name:_
You press your username and start chatting with others in room 8989;
You want to quit app? Say "bye" in the command line;
Bye
Special thanks codejava.net.