title: 'cannot find symbol error' when attempting to use .stream() on array in Java
body: <p>I am attempting to implement the Java.stream() method to multiple a list of numbers together in Java 8. I have imported the java.util.stream*; package. The static method is set to return an int and take in an array. However, when I call .stream().reduce() on the array, I get the error:</p>
  
  <pre><code>error: cannot find symbol
      int count = x.stream().reduce(1, (a, b) -&gt; a * b).sum();
                   ^
    symbol:   method stream()
    location: variable x of type int[]
  </code></pre>
  
  <p>How can I properly use the stream() method to multiple the values of the array together in order?</p>
  
  <p>The class I have defined as:</p>
  
  <pre><code>import java.util.stream.*;
  public class Kata{
    public static int grow(int[] x){
      int count = x.stream().reduce(1, (a, b) -&gt; a * b).sum();
      return count;  
    }
  
  }
  </code></pre>