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

 

abraskin@mbusd.org 2020_ced_u2_practice > swapMarker
prev  |  next  |  chance

Given a String parameter str and String parameter marker return a String where everything before and after the marker have been swapped.


Pre-condition: marker is found within str

swapMarker("Abbra Caddabra", " ") → "Caddabra Abbra"
swapMarker("Last, First", ", ") → "First, Last"
swapMarker("ABC<-->123", "<-->") → "123<-->ABC"

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

public String swapMarker(String str, String marker) { }

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: 100

Copyright Nick Parlante 2017 - privacy