Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created July 9, 2020 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/b632894f34d4728d7f01dfbd8f2f6ab4 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/b632894f34d4728d7f01dfbd8f2f6ab4 to your computer and use it in GitHub Desktop.
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
System.out.println("Wählen Sie eine Aktion aus:");
System.out.println("1: Verschlüsseln 2: Entschlüsseln");
String eingabe = br.readLine();
int auswahl = Integer.parseInt(eingabe);
System.out.println("Geben Sie Ihren Code ein:");
eingabe = br.readLine();
int code = Integer.parseInt(eingabe);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment