title: How to know if all elements inside the ARRAY of THREAD with dynamic size is finished in Java?
body: <p>If I have an array of thread with dynamic size, how will I be able to determine if all threads inside that array is already finished? I am also planning to create a FUNCTION that will trigger another thread to start when all these threads in the array is finished.
  Thank you.</p>