I\'m getting an error: The method sleep(int) is undefined for the type Thread. I thought the sleep method is in the Thread class in Java.
import java.util.Ra
Fully-qualify Thread since you're trying to use java.lang.Thread, not your own.
Thread
java.lang.Thread