Possible Duplicate:
How to wait for a set of threads to complete?
I want to run three threads, each thread calls different classes. These classes do some processing and return a Boolean value, I want to wait until all three threads return their output. I want to know how it’s possible to implement this using Java.
Thanks
You can use
Thread.join()to do that:For your solution