Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Password {
- public static void main(String[] agrs) {
- Scanner scan = new Scanner(System.in);
- String password = scan.nextLine();
- if ("s3cr3t!P@ssw0rd".equals(password)) {
- System.out.println("Welcome");
- } else System.out.println("Wrong password!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement