Advertisement
Guest User

Untitled

a guest
Jun 6th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. private static Scanner scanner = new Scanner(System.in);
  2.  
  3. public static void main(String[] args) {
  4.  
  5. System.out.println("Podaj login");
  6. String username = scanner.next();
  7. System.out.println("Podaj haslo");
  8. String password = scanner.next();
  9.  
  10. Bank.readClients();
  11.  
  12. // boolean successLogin = Bank.login(username, password);
  13. //
  14. // if (!successLogin) {
  15. // System.out.println("Bledny login lub haslo!");
  16. // System.exit(0);
  17. // }
  18.  
  19. int input = 0;
  20. do {
  21. System.out.println("1. Wplata");
  22. System.out.println("2. Przelew");
  23. System.out.println("3. Wyplata");
  24. System.out.println("4. Wypisz");
  25. System.out.println("0. Zakoncz");
  26.  
  27. input = scanner.nextInt();
  28.  
  29. switch (input) {
  30. case 1: {
  31. payment();
  32. }
  33. break;
  34. case 2: {
  35. transfer();
  36. }
  37. break;
  38. case 3: {
  39. payoff();
  40. }
  41. break;
  42. case 4: {
  43. print();
  44. }
  45. break;
  46. }
  47.  
  48. } while (input != 0);
  49.  
  50. Bank.saveClients();
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement