I am trying to write a simple java calculator program capable of addition, multiplication, subtraction, and division.
Within Eclipse, it works perfectly. But when I try to run it on Ubuntu Terminal, the symbol "*" is not recognized as an argument.
For example, when I type: java Calculate 7 * 8
, the program does not read in the input as three pieces of arguments.
I am curious to know the cause of this problem and possibly a fix to this.