public static void main(String args[]) throws UnknownHostException { ChatClient client = null; InetAddress address; if (args.length != 2) System.out.println("Usage: java ChatClient host port"); else { address = InetAddress.getByName(args[0]); client = new ChatClient(address, Integer.parseInt(args[1])); } }