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

 

replace


Top secret

Una stringa s contiene (eventualmente) dei caratteri asterisco * e chiocciola @
Si vuole ottenere una stringa in cui tutti gli asterischi sono sostituti da una scritta SECRET, e tutte le chiocciole sono sostituite della scritta CHIOCCIOLA.


replace("*") → "SECRET"
replace("@") → "CHIOCCIOLA"
replace("Il signor * * mi ha telefonato ieri") → "Il signor SECRET SECRET mi ha telefonato ieri"

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

String replace(String s) { }

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: 250

Copyright Nick Parlante 2017 - privacy