It would help if you could post an example of the program doing this.
Use println() to output the wrong results with a comment about how its wrong.
It sounds like you need a flag to remember if a...
Type: Posts; User: Norm
It would help if you could post an example of the program doing this.
Use println() to output the wrong results with a comment about how its wrong.
It sounds like you need a flag to remember if a...
Can your be more specific about the problem?
Show what program does, describe why that is wrong and show what it should do.
What code do you have so far?
You would use a boolean variable to remember an event. It would be false until the event happened, then it would be set true.