• Post Reply Bookmark Topic Watch Topic
  • New Topic

delay method  RSS feed

 
Bacchi Gerem
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
where can i find delay(100) method ?
What is the package name? Please let me know .
I tried java.lang.Object and java.util.concurrent.Delayed.

But i got error message:


can't find symbol delay(int) method.


Thnaks
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar with a method by that name in the Java APIs, but the static method "sleep" in java.lang.Thread could be substituted.
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look in the standard API, find INDEX at the top, then D.
A delay(int) method appears there, once and once only.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!