File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interval timer

 
aks ups
Greenhorn
Posts: 2
  • 0
  • 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
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • 0
  • 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
  • 0
  • 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
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • 0
  • 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
  • 0
  • 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