Skip to content

Instantly share code, notes, and snippets.

@jakejarvis
Created July 25, 2013 17:21
Show Gist options
  • Save jakejarvis/6081892 to your computer and use it in GitHub Desktop.
Save jakejarvis/6081892 to your computer and use it in GitHub Desktop.
String message="Scrabble";
message.toLowerCase(); // TEMPRARY!!!!
int code = 1;
for(int i = 0; i < message.length(); i++) {
char letter = message.charAt(i);
int z = letter;
z = z - 97;
z = z + code;
z = z % 26;
z = z + 97;
char y = (char) z;
System.out.print(y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment