Execute after a while

Report a typo

We have a Runnable switchLight object, as well as a handler. We want to execute switchLight after a one-second delay. Write a line of code to achieve this using the post* function:

Enter a short text
___

Create a free account to access the full topic