How can you program something to wait a specific amount of time before it does another task?
Public void method()
{
Int i=0;
While(i<10){
i++;
}
if(i=10){
Method2();
}
}Public void method()
{
Int i=0;
While(i<10){
i++;
}
if(i=10){
Method2();
}
}int i=0
public void timer(int time)
{
i++;
if(i==time)
Method2();
if(i==time+1)
i=0;
}