/* Print all possible paths from top left to bottom right of a mXn matrix The problem is to print all the possible paths from top left to bottom right of a mXn matrix with the constraints that from each cell you can either move only to right or down. */ //http://www.geeksforgeeks.org/count-possible-paths-top-left-bottom-right-nxm-matrix/ public class MatrixCount { public void check (int i, int j, int m, int n, int nexti, int nextj){ if(i==m-1){ for(int index=0; index=n-1 && j=m-1 && i