Bank programs in java


















Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. A Java program that creates a Bank Account with withdraw, deposit, and intrest functions. And a tester class, that tests the SavingsAccount class. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.

Learn more about bidirectional Unicode characters Show hidden characters. Copy link. Viewed 64k times. This is my code as of now: import java. If the account is not available at the bank, it should print a message. Will Will 31 1 1 gold badge 1 1 silver badge 6 6 bronze badges. So where exactly are you stuck with adding the remaining two options? StackOverflow isn't going to do your homework for you : Is this a code design question, or a recommendation on technique? How do you think you should go about it, from what you know so far?

To me, it seems that it will somehow involve triggering an error when you try to open a new account and you're over the limit, for example. Look into exceptions or consider returning something indicating an error state. Ok, I see. Edit your post and put "Edit:" or "Update:" in bold, and below that, show what you tried and what errors you're getting.

Also look at the related questions on the right--others have come here for help with the same assignment ; — Will. Add a comment. Active Oldest Votes. If it is true, go ahead and add the account, otherwise throw an error For option 2, just iterate through the list and display the results. Asura Asura 5 5 silver badges 15 15 bronze badges. I added password system to it. Table of Contents. Improve Article. Save Article.

Like Article. File configuration. String url. PreparedStatement st. PreparedStatement ps. Attention reader! Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.

Previous Compile Time Polymorphism in Java. Next Simplify 2b 4 b 2.



0コメント

  • 1000 / 1000