how to set a timer java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to set a timer java

Hi! Well i have this project that is basically a text based game, and i want to try to do a if you dont do [action] in 15 seconds, you lost! But im not sure how to code that, to give time to do an action.

22nd Mar 2020, 3:53 AM
Pame
Pame - avatar
1 Answer
+ 1
It's a little Code... just Have a look in this... https://stackoverflow.com/questions/4044726/how-to-set-a-timer-in-java
22nd Mar 2020, 4:48 AM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar