Question: Remove Character Write a method called removeChar that accepts a string argument representing a word and a char argument representing a character to remove from
Remove Character
Write a method called removeChar that accepts a string argument representing a word and a char argument representing a
character to remove from that word. The method should return a string that is the word with all occurrences of the character
removed. For example, if the arguments are "Mississippi" and s the return value would be "Miiippi".
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
