Package org.djutils.eval
Class Calculator
java.lang.Object
org.djutils.eval.Calculator
Calculator.java. Demonstrates use of the Eval class.
Copyright (c) 2023-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
- Author:
- Peter Knoppers
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Calculator
public Calculator()
-
-
Method Details
-
main
Demonstrate the Eval class. Program entry point.- Parameters:
args
- String ...; the command line arguments
-
doEval
Print expression followed by the result.- Parameters:
expression
- String; expression to evaluate
-
doEval
Print expression followed by the result.- Parameters:
expression
- String; the expression to evaluatevaluePool
- RetrieveValue; variable pool
-