Checks if all items are negative
With java 8 you can reduce your code using a more functional programming. It would be something like next. You could even reduce it to one line: 

public static boolean allNegatives(int[] a) {
     //@bowmore suggestion edit
     return a != null &amp;&amp; Arrays.stream(a).allMatch(i -&gt; i &lt; 0);
}