forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice 25-loops-before-quiz > censorIt
prev  |  next  |  chance

Given a string as input, return a string where for every * in the input the character before and after are replaced with * as well.The * cannot be the first or last character in the String.

censorIt("ab*cd") → "a***d"
censorIt("ab***cd") → "a*****d"
censorIt("ab*c") → "a***"

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

public String censorIt(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: 100

Copyright Nick Parlante 2017 - privacy