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

 

String-2 > starOut
prev  |  next  |  chance

Return a version of the given string, where for every star (*) in the string the star and the chars immediately to its left and right are gone. So "ab*cd" yields "ad" and "ab**cd" also yields "ad".


starOut("ab*cd") → "ad"
starOut("ab**cd") → "ad"
starOut("sm*eilly") → "silly"

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

public String starOut(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: 254.0

Copyright Nick Parlante 2017 - privacy