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

 

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

Write a method that returns a string made by interlacing the two input parameter strings. For example, "RUN" and "later" becomes "RlUaNter". Once the end of either string is reached the interlacing process stops and then the unused characters at the end of the longer string are appended to the end. Look at the test data for additional examples.


mar7_2017_SLHL_interlaceFull("g", "") → "g"
mar7_2017_SLHL_interlaceFull("", "x") → "x"
mar7_2017_SLHL_interlaceFull("abcdef", "xyxzz") → "axbycxdzezf"

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

public String mar7_2017_SLHL_interlaceFull(String str1, String str2) { }

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