Java implementation of Naive method to count of negative numbers in M [ n ] [ m ]
import java . util . * ; import java . lang . * ; import java . io . * ; class GFG { static int countNegative ( int M [ ] [ ] , int n , int m ) { int count = 0 ;