about | help | code help+videos | done | prefs |
Write a method that combines the first three characters of 'str1' and 'str2' into a new string. If there are fewer than three characters in either string, use whatever is in the string. Look at the test data for examples. test2022_05_16_APSL_firstTwo("Smile!", "Have fun") → "SmiHav" test2022_05_16_APSL_firstTwo("ajkfhdoiwe", "weiauiosfgh") → "ajkwei" test2022_05_16_APSL_firstTwo("1234567", "xyz") → "123xyz" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 220
Copyright Nick Parlante 2017 - privacy