@@ -0,0 +1,857 @@
+//https://www.hackerrank.com/challenges/caesar-cipher-1%0Aimport java.io.*;%0A%0Apublic class Solution %7B%0A  public static void main(String%5B%5D args) throws IOException %7B%0A    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));%0A    %0A    //Get length of string%0A    final byte N = Byte.parseByte(br.readLine());%0A    %0A    //Get string%0A    char%5B%5D s = br.readLine().toCharArray();%0A    %0A    //Get encryption key%0A    final byte K = Byte.parseByte(br.readLine());%0A    %0A    //Iterate through string%0A    for(byte i = 0; i %3C N; ++i)%7B%0A      char c = s%5Bi%5D;%0A      %0A      //Encrypt current char if it's a letter%0A      if(c %3E= 'a' && c %3C= 'z')%7B%0A        s%5Bi%5D = (char)(((c - 'a' + K) %25 26) + 'a');%0A      %7D else if(c %3E= 'A' && c %3C= 'Z')%7B%0A        s%5Bi%5D = (char)(((c - 'A' + K) %25 26) + 'A');%0A      %7D%0A    %7D%0A    %0A    //Print encrypted key%0A    System.out.print(s);%0A  %7D%0A%7D%0A

Create caesar-cipher-1.java