Driver Code
public static void main ( String [ ] args ) { char mat [ ] [ ] = { { '0' , '1' , '0' , '1' } , { '1' , '0' , '1' , '1' } , { '0' , '1' , '1' , '1' } , { '1' , '1' , '1' , '0' } } ; ROW = mat . length ; COL = mat [ 0 ] . length ; Point src = new Point ( 0 , 3 ) ; Point dest = new Point ( 3 , 0 ) ; pathMoves ( mat , src , dest ) ; } }