Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String encodedMessage = "";
- for (int i = 0; i < plainText.length(); i++) {
- char c = plainText.charAt(i);
- if (c >= 'a' && c <= 'm'){
- c += 13;
- } else if (c >= 'n' && c <= 'z'){
- c -= 13;
- } else if (c >= 'A' && c <= 'M'){
- c += 13;
- } else if (c >= 'N' && c <= 'Z'){
- c -= 13;
- }
- encodedMessage += c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement