View Single Post
  #3 (permalink)  
Old 04-25-2007, 07:09 PM
pegitha pegitha is offline
Member
 
Join Date: Apr 2007
Location: Indiana
Posts: 84
pegitha is on a distinguished road
Send a message via Skype™ to pegitha
You could also use the sleep(long) method instead of yours.
Code:
long interim=1000; public void live() { new Thread() { public void run() { while (true) { doA(); doB(); try { sleep(interim); } catch (InterruptedException e) { e.printStackTrace(); } } } }.start(); }
Reply With Quote