about | help | code help+videos | done | prefs |
Returns the concatenation of two strings in alphabetical order. If word1 comes before word2 alphabetically return word1 + word2, otherwise return word2 + word1. You will find compareTo() helpful in completing this function conCatInAlpha("apple", "banana") → "applebanana" conCatInAlpha("coconut", "banana") → "bananacoconut" conCatInAlpha("apple", "apple") → "appleapple" ...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: 212 Post-solution available
Copyright Nick Parlante 2017 - privacy