id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > quiz2024_10_03_SLHL_nextLetter
prev  |  next  |  chance

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)

public String quiz2024_10_03_SLHL_nextLetter(String orig) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 290

Copyright Nick Parlante 2017 - privacy