Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class CaeserCipher {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String text = sc.nextLine();
- for (Character symbol : text.toCharArray()) {
- System.out.print((char)(symbol + 3));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement