public static void main(String[] args)
    {
        //Scanner initialisieren
        scanner = new Scanner(System.in);

        hero = new Hero();

        System.out.println("Options: attack, arbitraryOption, quit");

        //fancy Version einer Dauerschleife
        while(scanner.hasNext())
        {
            //siehe getString()
            String scannerString = getString();

            if(scannerString.equals("attack"))
                hero.attack();

            if(scannerString.equals("arbitraryOption"))
                //execute arbitrary action
                System.out.println("Arbitrary Option executed");

            if(scannerString.equals("quit"))
                break;
        }
    }