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