+ 1

How to set interval in java

6th Mar 2018, 3:40 PM
Athu
3 Answers
0
what do you mean by interval? i mean, will be used for what?
11th Mar 2018, 2:03 AM
Finuex
Finuex - avatar
0
for making clock
11th Mar 2018, 7:27 AM
Athu
0
you should learn about thread. especially thread.sleep(interval). for example: Thread.sleep(1000) is same as 1 second. and loop until you would to stop. and use div "/" or modulo "%" for convert interval to minute or hours.
11th Mar 2018, 3:43 PM
Finuex
Finuex - avatar