src/edu/kit/informatik/literatur_system/Console.java
/**
     * Main method
     * @param args generic console input
     */
Main method
@param args generic console input
Main method @param args generic console input
public static void main(final String[] args) {
        final CommandHandler<?, ICommand<ILiteraturSystemService>> h = Command.handler();
        ICommand<?> c = null;
        do {
            try {
                c = h.accept(Terminal.readLine());
                if (c.okMessage())
                    Terminal.printLine("Ok");
            } catch (IllegalStateException | IllegalArgumentException | NullPointerException  e) {
                Terminal.printError(e.getMessage());
            }
        } while (c == null || !c.isQuit());
    }
public static void main ( final String [ ] args ) { final CommandHandler < ? , ICommand < ILiteraturSystemService > > h = Command . handler ( ) ; ICommand < ? > c = null ; do { try { c = h . accept ( Terminal . readLine ( ) ) ; if ( c . okMessage ( ) ) Terminal . printLine ( "Ok" ) ; } catch ( IllegalStateException | IllegalArgumentException | NullPointerException e ) { Terminal . printError ( e . getMessage ( ) ) ; } } while ( c == null || ! c . isQuit ( ) ) ; }
Main method
 @param args generic console input
Main method @param args generic console input