public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in)) {
            System.out.print("Geef de maand die onderzocht wordt (getal van 1 tot 12)");
            int maand = scanner.nextInt();
            if (maand >= 1 && maand <= 12) {
                try (Connection connection = DriverManager.getConnection(URL, USER, PASSWORD);
                        PreparedStatement statement = connection.prepareStatement(SELECT_SQL)) {
                    statement.setInt(1, maand);
                    try (ResultSet resultSet = statement.executeQuery()) {
                        while (resultSet.next()) {
                            System.out.println(resultSet.getDate("verkochtsinds") + " " + resultSet.getString("naam"));
                        }
                    }
                } catch (SQLException ex) {
                    System.out.println(ex);
                }
            } else {
                System.out.println("Geef een correcte maand op.");
            }
        }
    }