about | help | code help+videos | done | prefs |
replaceAbyB
Given an input String str, return a new String where the sole A is replaced by B. Use only the basic String methods learned in class. (hint: use IndexOf() ). replaceAbyB("aAb") → "aBb" replaceAbyB("A") → "B" replaceAbyB("abAck") → "abBck" ...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: 210
Copyright Nick Parlante 2017 - privacy