public static void main(String[] args) throws NumberFormatException, IOException {
   if (args.length != 1) {
     System.out.println(USAGE);
     System.exit(0);
   }
   Server server = new Server(Integer.parseInt(args[0]));
   server.run();
 }
Exemple #2
0
 public Server(int port) {
   SERVER_PORT_NUMBER = port;
   run(port);
 }