title: Checking two int arrays for equality - Regardless of order
body: <p>Disclaimer: This IS homework, so please don't just give me code, I'd like a sort of explanation of how I could go about doing this with as little actual code as possible.</p>
  
  <p>So I have two integer arrays that are unsorted and equal length, and can contain duplicate values. As this is homework, there is the strange condition that I'm not allowed to use anything from java.utils or sort the array.</p>
  
  <p>I'm supposed to check if the two arrays contain identical elements regardless of order. So comparing the arrays [5, 6, 7, 5, 6, 3] and [6, 6, 7, 5, 5, 3] would return true, while comparing [7,7 8] and  [7, 8, 8] would not.</p>
  
  <p>I'm at a loss to how to do this, I've searched up questions but they all seem to use either something from java.utils, or the arrays do not contain duplicates. I've tried doing looping through each value in the first array, and for each value loop through the second array checking if that value exists there, but it trips up on duplicates. </p>
  
  <p>I'd be greatful for any sort of help, advice, or tips in the right direction. Thanks!</p>