about | help | code help+videos | done | prefs |
Write a method that returns a string made up of the first character in 'str1' followed by the first character in 'str2'. Either or both of these strings could be an empty string, in which case you indicate that with a "#" sign. For example, if 'str1' is "hello" and 'str2' is empty "", you would return "h#". If both strings are empty, you would return "##". quiz2023_09_15_APP1SLHL_firstCharacters("this is a", "quiz") → "tq" quiz2023_09_15_APP1SLHL_firstCharacters("Hello!", "") → "H#" quiz2023_09_15_APP1SLHL_firstCharacters("", "") → "##" ...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: 230
Copyright Nick Parlante 2017 - privacy