public void processInput(String lineOfText, client clientObj) {
    
        this.clientObj = clientObj;
        if (!lineOfText.isEmpty()) {
            
            String[] args = lineOfText.split("\\s+");
            String command = args[0];
            String[] remArgs = new String[args.length-1];
            
            if (args.length>1) {
                System.arraycopy(args,1,remArgs,0,args.length-1);
            }
        
            if(command.equals("list")) {
                printChatters();
            }
            else if(command.equals("connect")) {
                connectChat(args);
            }
            else if(command.equals("exit")) {
                System.exit(0);
            }
        }
        System.out.print( "Enter command: " );
    }