Originally posted by Vishal K Patel:
Awaiting for the solution...
Then you may have a very long wait. People don't just give solutions here.
Why don't you start with something simple. Read the command line arguments and validate them.
The command line arguments are in the
String array passed to the main method of your class. You will need to check that the strings "*", "+" and "-" are found at least once each in the array. Any array element not containing one of those strings must contain a string representation of an integer.
Have a go at that. If you have any problems come back and post your code and details of what the problem is e.g. compilation error messages, runtime exceptions. Use code tags to post your code - it makes it easier to read.