Search:

Type: Posts; User: Michael_D

Search: Search took 0.16 seconds.

  1. Re: Making a countdown timer using the currentTimeMillis method

    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.
  2. Re: Making a countdown timer using the currentTimeMillis method

    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...
  3. Re: Making a countdown timer using the currentTimeMillis method

    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...
  4. Re: Making a countdown timer using the currentTimeMillis method

    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?
  5. Making a countdown timer using the currentTimeMillis method

    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:...
Results 1 to 5 of 5