public static int getPositiveNumber(Scanner scanner, String message) {
        int number = 0;
        number = getNumber(scanner, message);
        while (number <= 0) {
            System.out.println("Error: incorrect number.");
            number = getNumber(scanner, message);
        }
        return number;
    }