public static void main(String[] args) {
		Chat ch = new Chat();
		

		if(args.length == 1) {
			int port = Integer.parseInt(args[0]);
			ch.mode1(port);
		}else if(args.length == 2){
			Debug.print(args[0]);
			Debug.print(args[1]);

			int port = Integer.parseInt(args[0]);
			String host = args[1];
			ch.mode2(port, host);
		}
		else{
			System.out.println("usage: java chat <port num> [<host name>]");
			System.exit(0);
		}
			
		}