ThunDerStorm26

Password Guess

Jan 22nd, 2021
884
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7.     public static void main(String[] args) {
  8.  
  9.         Scanner scanner = new Scanner(System.in);
  10.  
  11.        String password = scanner.nextLine();
  12.  
  13.        if (password.equals("s3cr3t!P@ssw0rd")){
  14.            System.out.println("Welcome");
  15.        }
  16.        else {
  17.            System.out.println("Wrong password!");
  18.        }
  19.     }
  20. }
RAW Paste Data