Skip to content

Commit 49ba405

Browse files
committed
instantiate and implement the encode, decode methods
1 parent 52a94b4 commit 49ba405

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/java/App.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
import java.io.Console;
2+
13
public class App {
24
public static void main(String[] args){
3-
System.out.println("Sanity Check");
5+
Console myConsole = System.console();
6+
System.out.println("Enter the text to Encrypt: ");
7+
String input = myConsole.readLine();
8+
CaesarShift encDec = new CaesarShift();
9+
System.out.println("Input String: " + input);
10+
System.out.println("Encrypted: " + encDec.encrypt(input));
11+
System.out.println("Decrypted String: "+encDec.decrypt(encDec.encrypt(input)));
412
}
513
}

0 commit comments

Comments
 (0)