about | help | code help+videos | done | prefs |
Write a method that accepts two string input parameters and returns a single string made up of those two strings with a space between them, but with the first letters of the strings swapped. For example, if the strings are "computer" and "programming" you would return "pomputer crogramming" as a result. You may assume that both input parameters will have at least one character (no empty strings). oct18_2016_APSLHL_stringSwap("a", "time") → "t aime" oct18_2016_APSLHL_stringSwap("x", "a") → "a x" oct18_2016_APSLHL_stringSwap("first period", "programming") → "pirst period frogramming" ...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: 210
Copyright Nick Parlante 2017 - privacy