Skip to content

Instantly share code, notes, and snippets.

@KirkSteffke
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save KirkSteffke/9d1ce74983b5dcfb3026 to your computer and use it in GitHub Desktop.
Save KirkSteffke/9d1ce74983b5dcfb3026 to your computer and use it in GitHub Desktop.
Base code for the third CRM Science Lab Coat Challenge
// 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