a java code to do postfix evaluation