Last active
August 29, 2015 14:28
-
-
Save KirkSteffke/9d1ce74983b5dcfb3026 to your computer and use it in GitHub Desktop.
Base code for the third CRM Science Lab Coat Challenge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Start with this | |
public String getResult(string letter, integer step) { | |
String result; | |
// Your code here! | |
/* Increment/Shift the provided letter by the step provided. | |
IE: getResult('A', 1) should yield "B" and getResult('A',2) should yield "C" */ | |
return result; | |
} | |
// Confirm your results | |
system.assertEquals('B', getResult('A',1)); | |
system.assertEquals('C', getResult('A',2)); | |
system.assertEquals('A', getResult('Z',1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment