How to make a timer for a quiz using java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make a timer for a quiz using java

Suppose you have given 60 sec to answer a question

18th Nov 2019, 5:05 PM
Harshita Shreya
Harshita Shreya - avatar
1 Answer
0
Don't use threads or multi threading it won't help. You need to use java GUI using swing option that is timer class. Read this: https://docs.oracle.com/javase/tutorial/uiswing/misc/timer.html
18th Nov 2019, 6:26 PM
Chirag Kumar
Chirag Kumar - avatar