delay is an instance method of class A. (See Listing 6.)
Listing 6. The method named delay. |
---|
void delay(){ try{ Thread.currentThread().sleep(30); }catch(InterruptedException e){ System.out.println(e); }//end catch }//end delay |
File: cs.htm | [Next] | [Prev] |