package theatre; import theatre.ServerThread; import java.io.*; import java.net.*; class Server { public static void main(String[] argv) throws Exception { Reservations reservations = new Reservations(); ServerSocket welcomeSocket = new ServerSocket(9876); while(true) { Socket connectionSocket = welcomeSocket.accept(); theatre.ServerThread theThread = new theatre.ServerThread(connectionSocket, reservations); theThread.start(); } } }