We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52a94b4 commit 49ba405Copy full SHA for 49ba405
src/main/java/App.java
@@ -1,5 +1,13 @@
1
+import java.io.Console;
2
+
3
public class App {
4
public static void main(String[] args){
- 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)));
12
}
13
0 commit comments