Question: In Java please code a logic where a user inputs a passage and then a word (a word which will be censored from the passage).

In Java please code a logic where a user inputs a passage and then a word (a word which will be censored from the passage). After that it would print the same passge but with the word entered being replaced with keyword "&". Please help. Will rate good,

EXAMPLE:

Passage:

I love chegg. Chegg is my best source to get help from and chegg is an important feaautre and tool in my life.

Word to be censored:

Chegg.

censored passage:

I love &&&&&. &&&&& is my best source to get help from and &&&&& is an important feaautre and tool in my life.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!