@@ -0,0 +1,489 @@
+class Solution %7B%0A    public int countNegatives(int%5B%5D%5B%5D grid) %7B%0A        int rows = grid.length;%0A        int columns = grid%5B0%5D.length;%0A        int rp = 0;%0A        int cp = columns -1;%0A        int count=0;%0A        while(cp%3E=0 && rp%3Crows)%0A        %7B%0A            if(grid%5Brp%5D%5Bcp%5D%3C0)%0A            %7B%0A                count+=(rows-rp);%0A                cp--;%0A            %7D%0A            else%0A            %7B%0A                rp++;%0A            %7D%0A            %0A        %7D%0A        return count;%0A        %0A    %7D%0A%7D%0A

Create CountNegativeNumbers.java