import java.util.*; import java.io.*; public class follow { static char ntrmnl[],trmnl[]; static int ntlen,tlen; static String grmr[][],fst[],flw[]; public static void main(String[] args) { String nt,t; int i,j,n; Scanner sc= new Scanner(System.in); System.out.println("enter the non terminal"); nt=sc.next(); ntlen=nt.length(); ntrmnl= new char[ntlen]; ntrmnl=nt.toCharArray(); System.out.println("enter the terminal"); t=sc.next(); tlen=t.length(); trmnl=new char[tlen]; trmnl=t.toCharArray(); System.out.println("Specify the grammar(enter 9 for eps)"); grmr=new String[ntlen][]; for(i=0;i