I created a class MyTask extending the FutureTask class. The implementation of the call() method is shown be
MyTask
FutureTask
call()