title: How to change object movement every 5 seconds using the timer in java?
body: <p>I have a object moving according to a certain algorithm and I want to make it move a different way every 5 seconds. How do i do that using the timer?</p>