Don't call parseInt. Rewrap in try/catch and return -1 in NumberFormatException
Don't call parseInt. Rewrap in try/catch and return -1 in NumberFormatException