title: What is wrong with my method isReverse
body: <p>Write a recursive method called isReverse("word1", "word2") that accepts two Strings as parameters and returns true if the two Strings contain
  the same sequence of characters as each other but in opposite order, ignoring case, and returning false otherwise. 
  For example, the call of:</p>
  
  <pre><code>isReverse("Desserts", "Stressed") 
  </code></pre>
  
  <p>would return true. [So eat desserts when you are stressed?]
  Null, empty and one letter strings are also to return true (if both parameters are the same value).
  This is homework and I am having trouble making this code work appropriately. It returns true no matter what I do.</p>
  
  <pre><code>public static boolean isReverse(String word1, String word2) 
  {
      if(word1 == null || word2 == null)
      {
          if(word1!= null &amp;&amp; word2 != null)
          {
              return false;
          }
          return false;
      }
      else if(word1.length() == word2.length())
      {
          String firstWord = word1.substring(0, word1.length());
          String secondWord = word2.substring(word2.length()-1);
          if (firstWord.equalsIgnoreCase(secondWord))
          { 
              return isReverse(word1.substring(0, word1.length()), word2.substring(word2.length() - 1));
          }
      }
      return true;
  }
  </code></pre>