why this little piece of code is giving illegal start of type error in line 6 and 10(for loops).... i can\'t find any unmatched braces...
class StackDemo{
You cannot use for loop inside a class body, you need to put them in some kind of method.
class StackDemo{ final int size = 10; Stack s = new Stack(size); public void run(){ //Push charecters into the stack for(int i=0; i