I have two classes one is main method other is a class which implements runnable interface.
I want to print threads in console of order t3 then t2 and then t.
I read in the internet that the order can be ensured by calling thread.join() inside run but was not able to pass t3 and t2 and t
thread objects to the class which implements runnable.
how to pass thread objects to the class and call t3.join and t2.join and t.join inside run method
here are the classes which i have written are