Advertisement
meteor4o

JF-TextProcessing-Exercise-04.CaesarCipher

Jul 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class CaeserCipher {
  6.     public static void main(String[] args) {
  7.         Scanner sc = new Scanner(System.in);
  8.  
  9.         String text = sc.nextLine();
  10.  
  11.         for (Character symbol : text.toCharArray()) {
  12.             System.out.print((char)(symbol + 3));
  13.         }
  14.  
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement