code: 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");
    }
docs: Ask a question which results in a boolean result.