Hi kri shan
Yes, you can evaluate this expression just by java program but you would have to know following things,
1. Infix notation
2. Postfix notation
3. How to evaluate a postfix notation.
I have set of classes which will just work for you ready made once I cast things to double instead of int in my code...
but if this is your assignment then
you should try it yourself and we will help you through your try if you have any difficulties...
Now saying that, if you aren't aware of any of the above three then I would explain little bit,
1. Infix notation is the one you have given where there are operands and operators in "between them" (hence INfix)
2. Postfix notation is the one where you would have operands and operators at the "end of operands" (hence POSTfix)
3. You can google on how to evaluate a postfix expression using stack. its pretty easy as we have Stack class in java already and we don't have to build our stack...
Please let us know if anything else we can help..
Regards
Maulin