Credentials Test
This commit is contained in:
parent
50675e0bbd
commit
037e4e3c6f
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user