Hi every one.
suppose i have Car class:
public class Car{
int id;
int speed;
public void move(){
...
}
.....
}
that have to run in Race class:
public class Race{
Car[] cars;
....
public void runRace(){
..
for (int i=0; i<cars.length; i++)
{
cars[i].move();
//here is my problem
}
}
i need to simulate cars movement in runRace()
using time intervals, and the question is:
Is there any java statment that let me wait some time in //here is my problem
place without using thread?