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

 

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

Write a method that returns a single string consisting of the two input parameter strings with a dash "-" between them. Look at the test data for examples.


test2021_09_16_APSLHL_combine("be", "careful") → "be-careful"
test2021_09_16_APSLHL_combine("123", "94824") → "123-94824"
test2021_09_16_APSLHL_combine("hungry4", "lunch") → "hungry4-lunch"

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

public String test2021_09_16_APSLHL_combine(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: 220

Copyright Nick Parlante 2017 - privacy