Advertisement
Guest User

Account Login Tasos

a guest
Jan 27th, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class AccountLogin
  4. {
  5. static int i;
  6.  
  7. public static void main(String []args)
  8. {
  9. String [] username = new String[33];
  10. int [] password = new int[33];
  11. int tasos = 0;
  12.  
  13. while(tasos == 0);
  14. {
  15. Scanner in = new Scanner(System.in);
  16. String command = in.nextLine();
  17. command = command.toLowerCase();
  18. System.out.println("Would you like to (login), (create) an account, or (exit)?");
  19.  
  20. if(command.equals("login"))
  21. {
  22.  
  23. }
  24. else if(command.equals("create"))
  25. {
  26. Scanner userInput = new Scanner(System.in);
  27. String user = in.nextLine();
  28. System.out.println("");
  29. username [i] = user;
  30. i++;
  31.  
  32. Scanner passInput = new Scanner(System.in);
  33. int pass = in.nextInt();
  34. System.out.println("");
  35. password [i] = pass;
  36. i++;
  37. }
  38. else if(command.equals("quit"))
  39. {
  40. System.out.println("Thank you for your time");
  41. tasos++;
  42. }
  43. else
  44. {
  45. System.out.println("Sorry don't understand");
  46. }
  47. }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement