| about | help | done | prefs | create account |
Java > Warmup-2 > stringYak
prev | next | chance
| Suppose the string "yak" is unlucky. Given a string, return a version where all the "yak" are removed, but the "a" can be any char. The "yak" strings will not overlap.
stringYak("yakpak") → "pak" stringYak("pakyak") → "pak" stringYak("yak123ya") → "123ya" ...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 236.0
Copyright Nick Parlante 2006-10 - privacy