java return a value from a thread

Hello all,

I have two classes and one of them extends thread.

The thread is implementing a long task.
I wanna obtain a result after performing that task from that thread (I have implemented a method for that) but how can I accomplish that because the run method must return void.

Thanks,
Nuca

This tute suggests that you use the Callable interface introduced in Java 5.

Learning Java - Chapter 10 : Java

Thank you very much