Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Practice {
- public static void main (String []args){
- Scanner name = new Scanner(System.in);
- for(int i = 1; i <=3; i++){
- System.out.print("Username: ");
- String a = name.next();
- System.out.print("Password: ");
- String b = name.next();
- if(a.equals("Ryan")){
- if(b.equals("Banana")){
- System.out.println("The grenade is in the boot!");
- break;
- }
- if(i == 3){
- System.out.println("You Have Been Locked Out");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement