Instructions:
cd
to thesrc
directory- Compile the
Main.java
file (javac Main.java
) - Run the compiled program while passing a text file with the expression as argument, e.g.
java Main ../Calc1.stk
. - If the syntax in the text file is correct, the result will be printed.