Why are all your methods static? (main execluded). If they are only known to one
class make them private, or public if they are going to be excuted within the main
method (so it can "see" them.
...
Type: Posts; User: Ada Lovelace
Why are all your methods static? (main execluded). If they are only known to one
class make them private, or public if they are going to be excuted within the main
method (so it can "see" them.
...
That will produce a logical error if the user entered the exact starting amount.
I scanned over the code and it seems o.k to me. Try testing it out - did it do what you expected?
Wishes Ada xx