src/Recipe.java
/**
     * Detects if a recipe already exists in the user's directory, and gives the user the choice of modifying it.
     */
Detects if a recipe already exists in the user's directory, and gives the user the choice of modifying it.
Detects if a recipe already exists in the user ' s directory and gives the user the choice of modifying it .
public static boolean modifyExistingRecipeCheck() {
        if (hasRecipeStored) {
            System.out.println("The program has detected that you already have a recipe saved in saving directory - (C:\\recipe_dir_test).");
            sleep(2);
            System.out.println("Would you like to modify this recipe? (In terms of how many people it serves)");
            String response = sc.nextLine();
            if (response.equalsIgnoreCase("Y") || response.equalsIgnoreCase("yes")) {
                modified = true;
                handleModify();
            } else {
                return false;
            }
        }
        return false;
    }
public static boolean modifyExistingRecipeCheck ( ) { if ( hasRecipeStored ) { System . out . println ( "The program has detected that you already have a recipe saved in saving directory - (C:\\recipe_dir_test)." ) ; sleep ( 2 ) ; System . out . println ( "Would you like to modify this recipe? (In terms of how many people it serves)" ) ; String response = sc . nextLine ( ) ; if ( response . equalsIgnoreCase ( "Y" ) || response . equalsIgnoreCase ( "yes" ) ) { modified = true ; handleModify ( ) ; } else { return false ; } } return false ; }
Detects if a recipe already exists in the user's directory, and gives the user the choice of modifying it.
Detects if a recipe already exists in the user ' s directory and gives the user the choice of modifying it .