Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- String choice;
- char x;
- Scrambler word = new Scrambler();
- System.out.println("Word to be encrypted: ");
- word.input( input.next() );
- word.Encrypt();
- System.out.println(word.Retrieve());
- System.out.print("Decrypt?Y/N: ");
- choice = input.next();
- x = choice.charAt(0);
- if (x == 'Y' || x == 'y'){
- System.out.println(word.Decrypt());
- }else{
- System.out.println("Thanks for encrypting!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement