public static void main(String[] args) {
		String host = "";
		int port = 0; // The port number

		try {
			host = args[0];
		} catch (ArrayIndexOutOfBoundsException e) {
			host = "localhost";
		}

		// **** Changed for E49' JI and KS
		try {
			port = Integer.parseInt(args[1]);
		} catch (Exception e) {
			port = DEFAULT_PORT;
		}

		// **** Changed for E51' - JI and KS
		System.out.println("Please enter your login ID: ");

		Scanner fromConsole = new Scanner(System.in);
		String loginID;

			loginID = fromConsole.nextLine();
			if (!loginID.startsWith(" ") && !loginID.equals("")) {
				ClientConsole chat = new ClientConsole(loginID, host, port);
				chat.accept(); // Wait for console data
			}
			
		fromConsole.close();
		System.out.println("Invalid login ID. System has quit.");
	}