Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Practice {
  4. public static void main (String []args){
  5. Scanner name = new Scanner(System.in);
  6. for(int i = 1; i <=3; i++){
  7. System.out.print("Username: ");
  8. String a = name.next();
  9. System.out.print("Password: ");
  10. String b = name.next();
  11. if(a.equals("Ryan")){
  12. if(b.equals("Banana")){
  13. System.out.println("The grenade is in the boot!");
  14. break;
  15. }
  16. if(i == 3){
  17. System.out.println("You Have Been Locked Out");
  18. }
  19. }
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement