|
Threads are hard. I think that the sleep method that this anonymous class is using is its sleep() method which needs a parameter passed in. I do not think it is using the sleep method you created. I changed your method name to doze() and changed it in the anonymous class and it ran , but of course it never stopped running. Somewhere you need to give it a time to stop, unless of course it is something you want to run forever, which, I supposed, you might
|