src/Recipe.java
/**
     * A simple return statement to check for an existing recipe stored in the user's directory (hasRecipe).
     */
A simple return statement to check for an existing recipe stored in the user's directory (hasRecipe).
A simple return statement to check for an existing recipe stored in the user ' s directory ( hasRecipe ) .
public static String hasAnyRecipesStored() {
        boolean hasRecipe = new File("C:\\recipe_dir_test", "myRecipe.txt").exists();
        if (hasRecipe) {
            hasRecipeStored = true;
            return "You have a recipe stored.";
        } else {
            hasRecipeStored = false;
            return "You don't have a recipe stored.";
        }
    }
public static String hasAnyRecipesStored ( ) { boolean hasRecipe = new File ( "C:\\recipe_dir_test" , "myRecipe.txt" ) . exists ( ) ; if ( hasRecipe ) { hasRecipeStored = true ; return "You have a recipe stored." ; } else { hasRecipeStored = false ; return "You don't have a recipe stored." ; } }
A simple return statement to check for an existing recipe stored in the user's directory (hasRecipe).
A simple return statement to check for an existing recipe stored in the user ' s directory ( hasRecipe ) .