Saturday, April 6, 2013

Bracket Check program in Java

This post describes how to write a bracket check program in Java. Here also I use Stack class I used in previous post. The additional class is BracketCheck class.




Driver class should like this

public class Driv {

public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub

BracketCheck brc=new BracketCheck("}hgy{gh[yssr)))");
}

}

So, the output should like this :)






No comments:

Post a Comment