| about | help | done | prefs | create account |
Java > Warmup-2 > stringX
prev | next | chance
| Given a string, return a version where all the "x" have been removed. Except an "x" at the very start or end should not be removed.
stringX("xxHxix") → "xHix" stringX("abxxxcd") → "abcd" stringX("xabxxxcdx") → "xabcdx" ...Save, Compile, Run See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops |
Forget It! -- delete my code for this problem 230.0
Copyright Nick Parlante 2006-10 - privacy