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

 

jebbert@volusia.k12.fl.us > stringFlipper
prev  |  next  |  chance

Let's make up a new term... Let's define the "flipper" of a string this way: The "flipper" of "abcdefgh" is "badcfehg" such that each pair of characters is switched. You may assume that the input parameter contains a string with an even number of characters.


stringFlipper("test") → "etts"
stringFlipper("go") → "og"
stringFlipper("12345678") → "21436587"

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

public String stringFlipper(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: 250

Copyright Nick Parlante 2017 - privacy