Assuming you are using a gui, you can a) Multi-thread the application and use something like Thread.sleep to pause threads or b) Using a Swing Timer. I would recommend option b for ease of use.
...