mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 16:38:24 +00:00
17 lines
467 B
Java
17 lines
467 B
Java
/* Lesson 7 Coding Activity Question 1 */
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class U3_L7_Activity_One {
|
|
|
|
public static void main(String[] args) {
|
|
Scanner scan = new Scanner(System.in);
|
|
System.out.println("Enter password:");
|
|
String password = scan.nextLine();
|
|
if (password.equals("bulbasaur")) {
|
|
System.out.println("Access granted!");
|
|
} else {
|
|
System.out.println("Access denied!");
|
|
}
|
|
}
|
|
}
|