public class Calculator extends Object
Constructor and Description |
---|
Calculator() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(String expression)
按照给定的表达式计算
|
static double |
conversion(String expression)
计算表达式的值
|
Copyright © 2024. All rights reserved.