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

 

comboString2


Given 2 strings, a and b, return a string of the form long+short+long, with the shorter string on the inside and the longer string on the outside. The strings will not be the same length, but they may be empty (length 0).


comboString2("Hello", "hi") → "HellohiHello"
comboString2("hi", "Hello") → "HellohiHello"
comboString2("aaa", "b") → "aaabaaa"

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

public String comboString2(String a, String b) { }

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

Copyright Nick Parlante 2017 - privacy