Push Down Automata program in java for Equal no of a’s and b’s

import java.io.*;
class Pda
static char st[]= new char[20];
static int ptr =0;

static void push(char e)

static void pop()

public static void main(String Args[])throws IOException
BufferedReader obj= new BufferedReader ( new InputStreamReader (System.in));
String ip;
System.out.println(“Enter String:”);
int l;
boolean f=false;
int i;
for(i=0; i

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.