about | help | code help+videos | done | prefs |
placingOs
AddingOs Write the method to receive a String (str) and place an "O" character before and after each letter. If the string is empty then return an empty string. Do not change the word's case. (If lower case - keep lower case - If Upper Case - Keep Upper Case) Example Java becomes OJOaOvOaO placingOs("Java") → "OJOaOvOaO" placingOs("Hamilton") → "OHOaOmOiOlOtOoOnO" placingOs("window") → "OwOiOnOdOoOwO" ...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: 100
Copyright Nick Parlante 2017 - privacy