title: Return value of og the method is never used
body: <pre><code>public class prime {
      public static String method(int n){
          int cnt = 0;
          for (int i = 2; i &lt;n-1 ; i++) {
              if (n%i==0)
                  ++cnt;
          }
          if (cnt==0)
              return "YES";
          else
              return "NO";
      }
      public static void main(String[] args) {
          method(10);
  
      }
  }
  </code></pre>
  
  <p>IntelliJ is saying to me when i hover over name of my method that <code>Return value of og the method is never used</code> and when i hover over name of this method in main i get this message <code>Result of 'prime.method()' is ignored</code> and i dont know why. Any help? Also in console i get nothing. Just Process finished with exit code 0</p>