May you guys help me with this problem. Can you guys use not a very complex style of writing this program? Thanks.
Build a RemoveString class that prompts the user for a sentence and a word to remove.
(a) Write a method, removeString( sentence, word), that removes the first occurrence of the given string from
the sentence.
(b) Write a method, removeAll( sentence, word), that removes all occurrences of word from the sentence. This
method should call the method you developed in part (a) repeatedly until all occurrences of word are removed.


LinkBack URL
About LinkBacks
Reply With Quote