title: Comparing character in two Strings
body: <p>I want to check if the characters in each String are the same, and can I build a second String which is given
   from the characters from first String. For example I have Random String ="amksomsamk" and i have to compare it to another "askommmaks".</p>
  
  <p>Firstly I write metod which check length</p>
  
  <pre><code>     public boolean areEquals(String s1, String s2){
          if (s1.toCharArray().length == s2.toCharArray().length){
              return true;
          }else
              return false;
  </code></pre>
  
  <p>and now I want to check each character in posible easy way.
  I will be grateful for your help</p>
  
  <p>PS.
  For given example I want to get true in return because characters in this particular Strings are the same. amksomsamk   a:2 m:3 k:2 s:2 o:1 askommmaks  a:2 m:3 k:2 s:2 o:1 If i use equals it won't be working</p>