private ChatCommand getNextCommand()
        {
            print(">");
            String command = scanner.nextLine();
            if (command.length() != 1)
            {
                return ChatCommand.NO_COMMAND;
            }
            switch (command.charAt(0))
            {
            case 'q':
                return ChatCommand.EXIT;
            case 'i':
                return ChatCommand.SELF_INFO;
            case 'e':
                return ChatCommand.SELF_EDIT;
            case 'l':
                return ChatCommand.LIST_CONTACTS;
            case 'a':
                return ChatCommand.ADD_USER;
            case 'r':
                return ChatCommand.REMOVE_USER;
            case 'c':
                return ChatCommand.OPEN_CHAT;
            }
            return ChatCommand.NO_COMMAND;
        }