| about | help | done | prefs | create account |
Java > Warmup-1 > frontBack
prev | next | chance
| Given a string, return a new string where the first and last chars have been exchanged.
frontBack("code") → "eodc" frontBack("a") → "a" frontBack("ab") → "ba" ...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 133.0
Copyright Nick Parlante 2006-10 - privacy