By boolean method I assume you mean a method that returns a boolean value.
When should the method return true?
When should the method return false?
When you answer those questions, you should be...
Type: Posts; User: Norm
By boolean method I assume you mean a method that returns a boolean value.
When should the method return true?
When should the method return false?
When you answer those questions, you should be...
If you want to call the method the first time the total reaches that amount, use a boolean variable to remember that the method has been called. Initialize it to false.
Test the variable before...