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


String-2 > sameStarChar
prev  |  next  |  chance

Returns true if for every '*' (star) in the string, if there are chars both immediately before and after the star, they are the same.

sameStarChar("xy*yzz") → true
sameStarChar("xy*zzz") → false
sameStarChar("*xa*az") → true

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

public boolean sameStarChar(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: 248.0 Post-solution available

Copyright Nick Parlante 2017 - privacy