Skip to content

Commit ee91610

Browse files
authored
Merge pull request #2 from Chal13W1zz/frontend
Implement a bare minimum CLI frontend.
2 parents 5df46fc + 49ba405 commit ee91610

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/App.java

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import java.io.Console;
2+
3+
public class App {
4+
public static void main(String[] args){
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

Comments
 (0)