title: How to call a method with an if else statement
body: <p>Just as the title says: I have a method that I need to call, but I'm not sure how. Here's the method: </p>
  
  <pre><code>public static int wordOrder(int order, String result1, String result2){
      order = result1.compareToIgnoreCase(result2);
      if (order == 0){
          System.out.println("The words are the same.");
      }else if (order &gt; 0){
          System.out.println("The order of the words alphabetically is " +result2+ " then " +result1+ ".");
      }else{
          System.out.println("The order of the words alphabetically is " +result1+ " then " +result2+  ".");
      } 
      return order;
    }
  </code></pre>
  
  <p>How am I supposed to call that in the main method? Any help would be great! Thanks!</p>