public boolean askBoolean ( final String question ) { checkNotNull ( question ) ; log . trace ( "Ask boolean; question={}" , question ) ; String result = readLine ( String . format ( "%s (yes/no): " , question ) ) ; return result . equalsIgnoreCase ( "yes" ) ; }
Ask a question which results in a boolean result .