Skip to content
Is there anyway to delay code in java on here?
Profile icon
MisledWater79

I’m trying to make something in java and I don’t know how to delay it.

You are viewing a single comment. View All
Answered by PDales [earned 5 cycles]
View Answer
Profile icon
RhinoRunner

you can use Thread.sleep().

Thread.sleep(1000) //pauses for 1 second