Question: I need help with the following Java application 1. APPLICATION SECTION: Server Client/Thread Create a chat application. You will need to create both the server
I need help with the following Java application
1. APPLICATION SECTION: Server Client/Thread Create a chat application. You will need to create both the server and the client codes. The server and clients should run on localhost. Below are some features that you should incorporate. Note, we may have under-specified what you need to do. If so, make up your own rules on what to do for those situations. In other cases, follow the requirements carefully.
1.1 Connect to Server
a) When you start a client, it should come up with a prompt, you should make it entirely text based.
> Enter your Name: (Type in your name, then press Enter)
b) After the user enters a name, the client should be connected to your server.
1.2 Send text message to server
a) Send user name and message to server.
b) Then the server broadcast clients text message to every other currently connected clients (i.e. not to the sending client).
c) Messages should be printed in each client's console and the server's console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
