1
0
Fork 0

Klasse die getestet wird auf public gestellt

main
Florian Hörner 2024-01-09 00:38:25 +01:00
parent 3416b6dd75
commit f44dee0651
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ public class Spreadsheet {
* @param formula The expression to be evaluated. * @param formula The expression to be evaluated.
* @return The result calculated. * @return The result calculated.
*/ */
private long calculate(String formula) throws ArithmeticException { public long calculate(String formula) throws ArithmeticException {
Matcher m = Pattern.compile("([A-Z][0-9]*)|[-\\+\\*/]|[0-9]*").matcher(formula); Matcher m = Pattern.compile("([A-Z][0-9]*)|[-\\+\\*/]|[0-9]*").matcher(formula);
long res = 0; long res = 0;