I'm having some trouble, and I wanted to ask if Someone could help me, it's probably just a silly error. The basic idea of the program is for the user to give inputs to the program. when the user sets up their bank account, the program gives instructions to deposit, withdraw, or to see the balance. If the user sets up a savings account besides the checkings one, then the program asks the user whether they want to see the total amount, the checkings balance, or the savings balance. then the program stops because I haven't finished it yet. But if the user sets up only a checking account then the balance method should only print the total balance. it shouldn't ask the user whether they want the checkings balance or so. I think there's a problem with my if statement but I don't know what it is.
You can see the code through Repl.it.
Here's the link: https://repl.it/@JeanTorres76/Suffering#Main.java
Hope someone can help. Thank you in advance.
Aucun commentaire:
Enregistrer un commentaire