Thread: Java Timer
View Single Post
Old 12-10-2004, 12:08 AM   PM User | #6
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
well, when you say test.start( ); you have only started the timer but instead of printing test you call System.println(test.isRunning() ); which will give you a boolean answer, not "test" like you mention. and thats the end....no more code.... you need the Thread.sleep(1000); to tie the two together and cause your action, printing "test" with your Timer...


Jason
Jason is offline   Reply With Quote