You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
468 B
16 lines
468 B
import java.util.Scanner;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
Scanner sc = new Scanner(System.in);
|
|
|
|
String SecretLogin = "admin";
|
|
String SecretPassword = "ASSWORD";
|
|
|
|
String login = sc.nextLine();
|
|
String password = sc.nextLine();
|
|
if (SecretLogin.equals(login) && SecretPassword.equals(password))
|
|
System.out.println("You in");
|
|
else System.out.println("Try again");
|
|
}
|
|
} |