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

 

may16_2016_APSLHL_stringSplit


Return the input parameter string but with the last-half where the first-half was and the first-half where the last-half was. If the length is odd, make the second-half of the original string the longer part. Look at the test data for examples.


may16_2016_APSLHL_stringSplit("locked the cat out and the dog in") → "ut and the dog inlocked the cat o"
may16_2016_APSLHL_stringSplit("Did you do your homework for J?") → " homework for J?Did you do your"
may16_2016_APSLHL_stringSplit("this is test data") → "test datathis is "

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

public String may16_2016_APSLHL_stringSplit(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: 290

Copyright Nick Parlante 2017 - privacy