I\'m writing an application that has 5 threads that get some information from web simultaneously and fill 5 different fields in a buffer class. I need to validate buffer
You do
for (Thread t : new Thread[] { th1, th2, th3, th4, th5 }) t.join()
After this for loop, you can be sure all threads have finished their jobs.