The following Images below presents the result of code when the Interpreter2.java program was executed from IntelliJ.