public Integer parseInput(String input) {
        Integer selectedNumberOfSimulations;
        
        try {
            selectedNumberOfSimulations = Integer.parseInt(input);
        } catch (NumberFormatException ex) {
            return null;
        }
        if (selectedNumberOfSimulations <= 0) {
            return null;
        }

        return selectedNumberOfSimulations;
    }