title: How can I see if an array in Java contains all the elements of another array?
body: <p>Write a boolean function that takes two unordered char arrays as
  parameters. The size of the first array is guaranteed to be less than or
  equal to the size of the second array. The function returns true if
  every element in the first array is contained in the second.</p>
  
  <p>Results:</p>
  
  <pre><code>Array One           Array Two           Return
  "a"                 "a"                 True
  "aa"                "ab"                False
  "cbb"               "abbc"              True
  "abbccdd"           "abbcccdd"          True
  </code></pre>
  
  <p><em>EDIT</em> Here's my attempt so far:</p>
  
  <pre><code>public static Boolean cmprStr( String s1, String s2 )
  {
      for(int i = 0; i &lt; s1.length(); i++ )
      {
          if( !s2.contains( String.valueOf( s1.charAt(i) ) ) )
          {
              return false;
          }
      }
      return true;
  }
  </code></pre>