@@ -0,0 +1,912 @@
+/**%0A * %0A */%0Apackage algorithms.strings;%0A%0Aimport java.util.Scanner;%0A%0A/**%0A * Challenge: https://www.hackerrank.com/challenges/caesar-cipher-1%0A * %0A * @author Sudharsanan Muralidharan%0A */%0Apublic class CaesarCipher %7B%0A  public static void main(String%5B%5D args) %7B%0A    Scanner in = new Scanner(System.in);%0A    int n = in.nextInt();%0A    String s = in.next();%0A    int k = in.nextInt();%0A%0A    StringBuilder builder = new StringBuilder();%0A    for (int i = 0; i %3C n; i++) %7B%0A      char c = s.charAt(i);%0A      int val = 0;%0A      k = (k %3E 26) ? (k %25 26) : k;%0A      if (c %3E= 65 && c %3C= 90) %7B%0A        val = ((c + k) %3E 90) ? ((c + k) %25 90 + 64) : (c + k);%0A      %7D else if (c %3E= 97 && c %3C= 122) %7B%0A        val = ((c + k) %3E 122) ? ((c + k) %25 122 + 96) : (c + k);%0A      %7D else %7B%0A        val = (int) c;%0A      %7D%0A%0A      builder.append(Character.toString((char) val));%0A    %7D%0A%0A    System.out.println(builder.toString());%0A    in.close();%0A  %7D%0A%7D%0A

Add solution for caesar cipher