Hi,
Thanks for reply... I actually had the following line of code:
choice = Integer.parseInt(System.in.read());
I thought, the above would convert "character" to "int". But, the output was as follows:
1 : push a onto b
2 : push a over b
3 : stack a onto b
4 : stack...