I have tried this on Eclipse and Netbeans IDE .
I got this :
flag being set
timer was set
this should be truetrue
this should be falsefalse
method
timer cleared
Type: Posts; User: jack_nutt
I have tried this on Eclipse and Netbeans IDE .
I got this :
flag being set
timer was set
this should be truetrue
this should be falsefalse
method
timer cleared
the output is like:
flag being set
flag being set
flag being set
this body:
the logic
if(b.flag)
{System.out.println("timer was set");
System.out.println("this should be true"+b.flag);
b.flag=false;
System.out.println("this should be false"+b.flag);...
Hi ,
i want to set a timer for 5 secs and once the timer wakes up i want to invoke a method . i am checking a boolean flag of class b,once set i want to invoke the method . but the logic is not...