Look at the method signature for the "
main" method, you can see it has a
String array. These get passed as
command line arguments.
The number classes (Integer, Double etc) can all
parse String values.
It is easy to do arithmetic with
primitives (don't forget about the default return type!)
There is a very common way to as the
System to print
out a line of text onto the console.
Any good
Java book will have examples or try it yourself and if it doesn't work, post your code and I am sure people will give more pointers.
J.
ps I've tried to give you some clues.