Answer:
Creating a Chat Server Using Java
Introduction: Creating a Chat Server Using Java. ...
Step 1: Setup a ServerSocket in the Server Class. ...
Step 2: Create a Socket in the Login Class. ...
Step 3: Create a Loop to Continuously Accept Clients. ...
Step 4: Create the Client Threads. ...
Step 5: Create the Server Thread. ...
Step 6: Make the Client Thread Send and Receive Data.