title: Java containsAll does not return true when given lists
body: <p>I want to check an array is subset of another array.  </p>
  
  <p>The program prints false, but I expect true. Why isn't containsAll returning true?</p>
  
  <pre><code>int[] subset;
  subset = new int[3];
  subset[0]=10;
  subset[1]=20;
  subset[2]=30;
  
  int[] superset;
  superset = new int[5];
  superset[0]=10;
  superset[1]=20;
  superset[2]=30;
  superset[3]=40;
  superset[4]=60;
  HashSet sublist = new HashSet(Arrays.asList(subset));
  HashSet suplist = new HashSet(Arrays.asList(superset));
  boolean isSubset = sublist.containsAll(Arrays.asList(suplist));
  System.out.println(isSubset);
  </code></pre>