@@ -0,0 +1,664 @@
+import java.io.*;%0Aimport java.util.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner sc = new Scanner(System.in);%0A        int n = sc.nextInt();%0A        sc.nextLine();%0A        String s = sc.nextLine();%0A        int k = sc.nextInt();%0A        StringBuilder sb = new StringBuilder();%0A        for (char c : s.toCharArray()) %7B%0A            if (Character.isUpperCase(c)) %7B%0A                c = (char)((c + k - 'A') %25 26 + 'A');%0A            %7D else if (Character.isLowerCase(c)) %7B%0A                c = (char)((c + k - 'a') %25 26 + 'a');%0A            %7D%0A            sb.append(c);%0A        %7D%0A        System.out.println(sb.toString());%0A    %7D%0A%7D%0A

Caesar Cipher