src/Recipe.java
/**
     * Saved the user's recipe in an easy-accessible directory, as well as saving it locally for reading later by the program.
     */
Saved the user's recipe in an easy-accessible directory, as well as saving it locally for reading later by the program.
Saved the user ' s recipe in an easy - accessible directory as well as saving it locally for reading later by the program .
public static void saveRecipe() throws IOException {
        Random random = new Random();
        if (file.exists()) {
            file.renameTo(new File("C:\\recipe_dir_test", "new-recipe (UID: " + random.nextInt(50) + ").txt"));
        }
        /**
         * saveInDirectory() and saveLocally() are both synchronized, 
         * meaning that the program will execute them both at exactly the same time.
         */
        saveInDirectory();
        saveLocally();
    }
public static void saveRecipe ( ) throws IOException { Random random = new Random ( ) ; if ( file . exists ( ) ) { file . renameTo ( new File ( "C:\\recipe_dir_test" , "new-recipe (UID: " + random . nextInt ( 50 ) + ").txt" ) ) ; } /**
         * saveInDirectory() and saveLocally() are both synchronized, 
         * meaning that the program will execute them both at exactly the same time.
         */ saveInDirectory ( ) ; saveLocally ( ) ; }
Saved the user's recipe in an easy-accessible directory, as well as saving it locally for reading later by the program.
Saved the user ' s recipe in an easy - accessible directory as well as saving it locally for reading later by the program .