Thanks man, I didn't know that.
Lucky for me I tried something else, otherwise I would still be fooling around with the remainder operator.
Type: Posts; User: Michael_D
Thanks man, I didn't know that.
Lucky for me I tried something else, otherwise I would still be fooling around with the remainder operator.
Yes. Every time I wanted to print the remaining value I used: (endTime - System.currentTimeMillis()) / 1000).
Once printed, 3-4 identical lines with the remaining seconds t appeared. One second...
Thank you for your respons! Although I couldn't figure out why the program kept repeating the same output, I found another possible solution.
I got lost of the remainder operator and tried something...
Excuse me for not being clear enough explaining the problem.
The timer works fine, but why does it give every second 3-4 times the same output instead of just showing it once every second?
Hey guys,
Recently I made the decision to learn Java programming on my own (I only bought a book, no course). So far I've covered the following relevant topics:
-Elementary Programming:...