'Runnable' Objects inside ArrayList

Hi All,

I have ‘Runnable’ Objects (B) inside an ArrayList declared of type A (Non runnable).

At some point in the program I have to create Threads from the contents of the Array List, and although the contents are indeed runnable, the array list is not declared as a runable type. (I do hope that made sense).

Whene I pass each of the Objects (B) contained in the array list to the constructor of Thread, Java reports that it does not recognise this is valid.

I am assuming this is down to the fact that the arrayList (A) is declared of a non-runable type, regardless of the fact that its contents (B) are.

How can I get Thread to accept the objects inside arrayList as runable?

Many thanks for your help

Do you have a small piece of sample code we could look take a look at?