I'm doing a console application with Java. I have one method where I need to wait one second, then continue with my method. It's just a simple method, so it means there is no thread involved. What can I do?
My Program looks like this:
- User writes something
- Program waits 1 second
- Then it does calculation.
It has to wait 1 second!