Java program to Print all possible paths from top left to bottom right of a mXn matrix
import java . io . * ; import java . util . * ; class GFG { static ArrayList < ArrayList < Integer > > allPaths = new ArrayList < ArrayList < Integer > > ( ) ; static void findPathsUtil ( ArrayList < ArrayList < Integer > > maze , int m , int n , int i , int j , ArrayList < Integer > path , int indx ) {