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

 

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

Write a method that returns a string in the format a-b-a where "a" is the first input parameter and "b" is the second input parameter. For example if the input parameters are "jump" followed by "crawl" you should return "jump-crawl-jump". Look at the test data for additional examples.


oct23_2017_APSLHL_stringMix("walk", "run") → "walk-run-walk"
oct23_2017_APSLHL_stringMix("$", "%") → "$-%-$"
oct23_2017_APSLHL_stringMix("abc", "def") → "abc-def-abc"

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

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

Copyright Nick Parlante 2017 - privacy