fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. Scanner kbReader = new Scanner(System.in);
  13. String username = kbReader.nextLine();
  14. String password = kbReader.nextLine();
  15. if((username.equals("DylPickle"))&&(password.equals("29103300")))
  16. {
  17. System.out.println("What's your zip code");
  18.  
  19. String question = kbReader.nextLine();
  20. if(question.equals("07083"))
  21. {
  22. System.out.println("Welcome DylPickle");
  23. }
  24. else
  25. {
  26. System.out.println("incorrect");
  27. }
  28. }
  29. else
  30. {
  31. System.out.println("incorrect");
  32. }
  33. }
  34. }
Success #stdin #stdout 0.12s 56524KB
stdin
DylPickle
29103300
07083
stdout
What's your zip code
Welcome DylPickle