title: Finding duplicate values between two arrays
body: <p>Let's say I have the following two arrays:</p>
  
  <pre><code>int[] a = [1,2,3,4,5];
  int[] b = [8,1,3,9,4];
  </code></pre>
  
  <p>I would like to take the first value of array <code>a</code> - 1 - and see if it is contained in array <code>b</code>. So, I would get that the '1' from <code>a</code> is in <code>b</code> even if it is not in the same position. Once I have gone through the comparison for the first element in <code>a</code>, I move on to the next number in array <code>a</code> and continue the process until I have completely gone through the first array.</p>
  
  <p>I know I need to do some looping (possibly nested?) but I can't quite figure out how I stick with just the first number in array <code>a</code> while looping through all the numbers in array <code>b</code>.</p>
  
  <p>This seems to be fairly simple I just can't get my head around it...</p>