• Post Reply Bookmark Topic Watch Topic
  • New Topic

Interval timer

 
aks ups
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I need to write a progrmme that display time in fix time interverl without putting thred in loop to keep resuorce busy in code java.

Any ideas are welcome

regards
aks


 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi and welcome to the JavaRanch.

Could you explain why you need that? And show us what you have tried so far.
 
aks ups
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Actully , This question was asked me in an interview and I didn't have answer.
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A simple timer would be sufficient in that case.
 
Tariik el berrak
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
copy the code in a java file called ScheduledTask.java, comple it and run it

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!