code: public static BigDecimal getBigDecimal(final String title, final BigDecimal defaultValue) {
          BigDecimal opt;
  
          do {
              try {
                  final String val = ConsoleMenu.getString(title + DEFAULT_TITLE + defaultValue + ")");
                  if (val.length() == 0) {
                      opt = defaultValue;
                  } else {
                      opt = new BigDecimal(val);
                  }
              } catch (final NumberFormatException e) {
                  opt = null;
              }
          } while (opt == null && defaultValue != null);
  
          return opt;
      }
docs: Gets an BigDecimal from the System.in
  
  @param title
  for the command line
  @return int as entered by the user of the console app