id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

andersoniii.edwin@cusd80.com > addingOs
prev  |  next  |  chance

AddingOs Write the method to receive a String (str) and place an "O" character between 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 JOaOvOa


addingOs("Java") → "JOaOvOa"
addingOs("Hamilton") → "HOaOmOiOlOtOoOn"
addingOs("window") → "wOiOnOdOoOw"

...Save, Compile, Run (ctrl-enter)

public String addingOs(String str) }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 102

Copyright Nick Parlante 2017 - privacy