If all you wish to do is pause execution, use the Thread.sleep function. If you cannot get this to compile, please post the full compiler error message