Write a program Censor.java
that takes a sentence as input via a Scanner, and goes through that sentence to find the bad words “darn” and “poop”. As the program goes, create a new, clean, sentence that has those bad words replaced by asterisks (“*”) and then print out that sentence.
Sample interaction:
Enter a sentence, and try to keep it clean!
This darn computer is a pooping disaster!
Here's what I heard:
This **** computer is a ****ing disaster.
There, I fixed it for you! :)