about | help | code help+videos | done | prefs |
Write a method that has a String parameter called 'orig' which represents the original string. This string can ONLY contain upper and lower case letters and the space character. Your goal is to create a new string that replaces each letter character with the next letter alphabetically, except that the letter Z will wrap around to A for both upper and lower case letters. The space character remains unchanged. Look at the test data for examples. quiz2024_10_03_SLHL_nextLetter("ZzzzZZzzzz") → "AaaaAAaaaa" quiz2024_10_03_SLHL_nextLetter("ABCDEFZabcdefz") → "BCDEFGAbcdefga" quiz2024_10_03_SLHL_nextLetter("Nine hundred and ninety nine happy haunts") → "Ojof ivoesfe boe ojofuz ojof ibqqz ibvout" ...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: 290
Copyright Nick Parlante 2017 - privacy