From 037e4e3c6f72f0c1b03d67e09a98105c86841e27 Mon Sep 17 00:00:00 2001 From: MRichter Date: Thu, 10 Nov 2022 16:24:08 +0100 Subject: [PATCH] Credentials Test --- src/Main.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Main.java b/src/Main.java index f5858db..ff0295b 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,5 +1,17 @@ +import java.util.Scanner; + public class Main { public static void main(String[] args) { + Scanner s = new Scanner(System.in); + System.out.print("Benutzername: "); + String login = s.next(); + System.out.print("Passwort: "); + String passwort = s.next(); + s.close(); + Credentials cred = new Credentials(login, passwort); + if (cred.valid()) { + System.out.print("Hello World"); + } } } \ No newline at end of file