public class EvaluateDemonstration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
CHARACTER |
static java.util.regex.Pattern |
UNSIGNED_DOUBLE |
Constructor and Description |
---|
EvaluateDemonstration() |
Modifier and Type | Method and Description |
---|---|
static double |
evaluate(java.lang.String s) |
static void |
evaluateStackTops(java.util.Stack<java.lang.Double> numbers,
java.util.Stack<java.lang.Character> operations) |
static void |
main(java.lang.String[] args) |
static boolean |
query(java.util.Scanner input,
java.lang.String prompt) |
public static final java.util.regex.Pattern CHARACTER
public static final java.util.regex.Pattern UNSIGNED_DOUBLE
public static void main(java.lang.String[] args)
public static boolean query(java.util.Scanner input, java.lang.String prompt)
public static double evaluate(java.lang.String s)
public static void evaluateStackTops(java.util.Stack<java.lang.Double> numbers, java.util.Stack<java.lang.Character> operations)