Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package TextPlocessing.Exercise;
- import java.util.Scanner;
- public class O4CaesarCipher {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String input = scanner.nextLine();
- StringBuilder result = new StringBuilder();
- for (int i = 0; i < input.length(); i++) {
- result.append((char) (input.charAt(i) + 3));
- }
- System.out.println(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment