about | help | code help+videos | done | prefs |
Write a method that returns the string 'orig' but with each occurrence of the character 'remove' replaced by the character 'replace'. You may NOT use any functional programming or maps. The ONLY string METHODS you are allowed to use are .length, .charAt, .substring, and .equals. You do not need to use all of these. apr_9_2019_APSLHL_replace("fishy, fishy, fish.", "y", "!") → "fish!, fish!, fish." apr_9_2019_APSLHL_replace("H", "H", "y") → "y" apr_9_2019_APSLHL_replace("abcdefggfedcba", "b", "z") → "azcdefggfedcza" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy