Creating Timer Tasks

Report a typo

Complete the class definition to create a valid class for a timer to run:

import java.util.Timer;
import java.util.TimerTask;

class TimerCode extends __________ {
    public void run() {
        System.out.println("Hello!");
    }

}
Enter a short text
___

Create a free account to access the full topic