Clean Files
3. Clean Files Name: CleanFiles.java In an imaginary society, the following words are considered extremely offensive: “help”, “dime”. ask”, “beach”, “ship”, and “fish”. Write a program that gets a text file from the user containing the offensive words and produces a sanitized version of the file with the words replaced by asterisks Sample Run: Enter file to clean: dirty.txt Enter file to save to: clean.txt Done cleaning! Where dirty.txt looks like Gone fishing! Let’s go to the beach! Look,
OR
OR