If there can be more than one mode, then you need a way to save all of them.
One way could be with an array. Another with collection class like a Map.
Why is the counter hF double instead of...
Type: Posts; User: Norm
If there can be more than one mode, then you need a way to save all of them.
One way could be with an array. Another with collection class like a Map.
Why is the counter hF double instead of...
What should the program's output look like?
The posted code does not compile for testing.
Can you explain what that means?
What should the program's output look like?
Please edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.