title: conditions on 1 array at multiple combined index locations saved to object
body: <p>If this is my int array</p>
  
  <pre><code> anArray[0] = 10;
   anArray[1] = 10;
   anArray[2] = 1;
   anArray[3] = 0;
   anArray[4] = 0;
   anArray[5] = 1;
  </code></pre>
  
  <p>How to i search the array for two locations that meet a condition.
  I want to search the following index combinations to see if they both contain >=1. </p>
  
  <pre><code>0 and 1     
  0 and 2    
  0 and 3    
  0 and 4    
  0 and 5    
  1 and 2   
  1 and 3   
  1 and 4   
  1 and 5  
  2 and 3
  2 and 4    
  2 and 5   
  etc...
  </code></pre>
  
  <p>If the condition is met then i want to save the indexes of the pair of locations meeting the condition to an object. </p>
  
  <p>The only way i can think of doing is to enter the index locations as parameters to the method but their must be a more efficient way. </p>