title: Compute the negative numbers in an array
body: <p>I was searching for solution to find negative numbers in array and i came up with something like this code from searching.</p>
  
  <pre><code>public static void main(String args[]){
      int arrayNumbers[] = { 3, 4, 7, -3, -2};
      for (int i = 0; i &lt;= arrayNumbers.length; i++){
          int negativeCount = 0;
          if (arrayNumbers[i] &gt;= 0){
                  negativeCount++;
      }
      System.out.println(negativeCount);
      }
  }
  </code></pre>
  
  <p>I was wondering is there an easier or shorter way to find the negative number in an array vs the code above?</p>