title: Best practice for thread arrays (java)
body: <p>I have some experience with threading in java, but I am wondering...</p>
  
  <p>What's the best practise to store multiple threads where I can access them both individually and as a group?</p>
  
  <p>My own solution is to create a <code>threadArray</code> class but naturally I would prefer a native class that is much more reliable.</p>
  
  <p>Thanks in advance!</p>
  
  <hr>
  
  <p><strong>edit</strong></p>
  
  <p>Apparently the functionality is of great importance of the best method. Well, I'll give an example:</p>
  
  <p>I've got an application that basically searches through a lot of information at the same time hence I'm using threads. The threads however each need to perform just a part of the entire operation so I wish to add additional parameters to specify a range.</p>
  
  <p>When a thread finishes it's specific search it can just stop naturally. When a thread finds a result however, I wish to stop all threads and retrieve that result.</p>
  
  <p>Does that help?</p>