title: IntStream strange error
body: <p>Java 8 has a new interface, named <code>IntStream</code>. I used its <code>of()</code> static method and encountered a strange error:</p>
  
  <blockquote>
    <p>This static method of interface <code>IntStream</code> can only be accessed as <code>IntStream.of</code></p>
  </blockquote>
  
  <p>But as you can see in the following code, I, exactly, used <code>IntStream.of</code></p>
  
  <pre><code>import java.util.stream.IntStream;
  
  public class Test {
  
      public static void main(String[] args) {
          int[] listOfNumbers = {5,4,13,7,7,8,9,10,5,92,11,3,4,2,1};
          System.out.println(IntStream.of(listOfNumbers).sum());
      }
  
  }
  </code></pre>
  
  <p>Moreover, if you check the <a href="http://docs.oracle.com/javase/8/docs/api/index.html" rel="noreferrer">API</a>, you will see that the method has been declared in the similar way which I used.</p>