Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.lang.Math;
- import java.io.*;
- class CipherLab {
- public static void main(String[] args) throws IOException {
- Scanner scan = new Scanner(System.in);
- ShiftCipher shift = new ShiftCipher();
- SubstitutionCipher sub = new SubstitutionCipher();
- System.out.println("Input string to encode:");
- System.out.println(sub.encode(scan.nextLine()));
- System.out.println("Input encoded string:");
- System.out.println(sub.decode(scan.nextLine()));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement