title: how to compare two string arrays without java utils
body: <p>Check to see if the array arr1 contain the same elements as arr2 in the same order in java.</p>
  
  <p>for example:</p>
  
  <pre><code>    isTheSame({"1", "2", "3"}, {"1", "2", "3"}) → true
      isTheSame({"1", "2", "3"}, {"2", "1", "1"}) → false
      isTheSame({"1", "2", "3"}, {"3", "1", "2"}) → false
  </code></pre>
  
  <p>so far i have</p>
  
  <pre><code>public boolean isTheSame(String[] arr1, String[] arr2)
  {
     if (arr1.length == arr2.length)
     {
        for (int i = 0; i &lt; arr1.length; i++)
         {
            if (arr1[i] == arr2[i])
            {
              return true;
            }
         }
      }
      return false;  
   }
  </code></pre>
  
  <p>The problem with this is that it only compares the first element of the two arrays.</p>