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

Java > 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

See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  CodingBat  >  String-2

Forget It! -- delete my code for this problem 248.0

Copyright Nick Parlante 2006-10 - privacy