showFormatError(maxAgeStr); return -1; String[] tokens = maxAgeStr.split(" +"); if ((tokens.length != 2)) { showFormatError(maxAgeStr); return -1; number = Integer.parseInt(tokens[0]); } catch (NumberFormatException e) { showFormatError(maxAgeStr); return -1; return 7 * 24 * number; } else { showFormatError(maxAgeStr); return -1;