You must login or register to view this content.
Also, here is a main to run it if you don't want to write your own.
public class Test
private static Scanner scan = new Scanner(System.in);
public static void main(String args)
System.out.print("Enter input: ");
String input = scan.nextLine();
CaesarCipher message = new CaesarCipher(input);
Example of how it works:
Enter input: Hello members of NGU
Encrypted sentence: KHOOR PHPEHUV RI QJX
Decrypted sentence: HELLO MEMBERS OF NGU