Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class PasswordGuess_06 {
  3. public static void main(String[] args) {
  4. Scanner scanner = new Scanner(System.in);
  5.  
  6.  
  7. String word = scanner.nextLine();
  8. if (word.equals("s3cr3tIP@ssw0rd")) {
  9. System.out.println("Welcome");
  10. } else {
  11. System.out.println("Wrong password!");
  12.  
  13.  
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement