I know it stops the program, but does it stop all executions? or just the ones within the class or method its placed? I'm trying to make my program wait for a short amount of time (like 0.5 seconds) for my adventure game, so that when space is pressed, it adds the swoosh, waits for a short amount of time, then removes it and waits for the user to release the space bar. also its a greenfoot method right? how would I do the same thing in pure java?

