title: Join one of any threads in Java
body: <p>In my Java program, I will launch two Threads simultaneously. I want for my program to join() on either one of two threads's completion without waiting for both threads to complete. In other words, if thread A finishes before thread B, I want the main thread to join thread A and resume the main thread without waiting for Thread B to finish and vice versa.</p>
  
  <p>Which of those Java classes that allows me to do this? </p>