
import interfaces.*;

import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;

/**
 * Chat Server for various clients
 */
public class MultiUserChatServer implements IChatServer {
    private List<IChatClient> clients = new ArrayList<>();
    private ServerSocket ss;

    private static int PORT = 8200;

    public void setupServer() {
        try {
            ss = new ServerSocket(PORT);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void waitForClients() {
        try {
            while (true) {
                Socket clientSocket = ss.accept();
                ConnectedClient client = new ConnectedClient(clientSocket, this);
                clients.add(client);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public List<IChatClient> getClients() {
        return clients;
    }
}

@@ -436,16 +436,84 @@
 (PORT);%0A
+            System.out.println(%22Server listening on port %22 + PORT);%0A
         
@@ -795,16 +795,131 @@
  this);%0A
+                System.out.println(%22New client connected from %22 + clientSocket.getInetAddress().getHostAddress());%0A
         

Add some log messeges to server