Advertisement
bilyana_popmihaylova

Untitled

Feb 18th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. class Main {
  4.  
  5.   public static void main(String[] args) {
  6.     Scanner scanner = new Scanner(System.in);
  7.     String password = scanner.nextLine();
  8.    
  9.  
  10.      if(password.equals("s3cr3t!P@ssw0rd")){
  11.     System.out.println("Welcome");
  12.  
  13.     } else {
  14.    
  15.     System.out.println("Wrong password!");
  16.  
  17.     }
  18.    
  19.   }
  20.  
  21.  
  22.  
  23.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement