Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class If {
  3.  
  4. public static void main(String[] args) {
  5. // TODO Auto-generated method stub
  6.  
  7. int number=3, numberTwo= 0;
  8. Scanner cheese= new Scanner(System.in);
  9. number= cheese.nextInt();
  10. numberTwo= cheese.nextInt();
  11.  
  12. if ( number == 3 || number == 5)
  13. {
  14. System.out.println("YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEET");
  15. }
  16.  
  17.  
  18. String username;
  19. String password;
  20. username = cheese.next();
  21. password = cheese.next();
  22.  
  23. if ((username.equals("Code") || username.equals("code")) && password.equals("abc123"))
  24. {
  25.  
  26. System.out.println("Dab on em Facebook");
  27.  
  28.  
  29. }
  30. else
  31. {
  32. System.out.println(" Dab on em LEAVE");
  33. }
  34.  
  35. boolean carPool = cheese.nextBoolean();
  36. if (carPool)
  37. {
  38. System.out.println("You are car pool");
  39. }
  40. else
  41. {
  42. System.out.println("NO");
  43.  
  44. }
  45.  
  46.  
  47.  
  48. }
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement