Java program to find if there is path from top left to right bottom
import java . io . * ; import java . util . * ; class pair { int Item1 , Item2 ; pair ( int f , int s ) { Item1 = f ; Item2 = s ; } } class GFG { static int row = 5 ; static int col = 5 ;