Skip to content

Commit 860bcd7

Browse files
committed
refactor: rename variable name [exception]
1 parent 9199b85 commit 860bcd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/calculator/Calculator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ public void calculation(){
1313
}
1414

1515
public void OperatorSetting(ArithmeticExpressionStack arithmeticExpressionStack) {
16-
ErrorException exception = new ErrorException();
16+
ErrorException exceptionCheck = new ErrorException();
1717
String firstString = arithmeticExpressionStack.pop();
18-
int cumulativeResult = exception.NumericalError(firstString);
18+
int cumulativeResult = exceptionCheck.NumericalError(firstString);
1919

2020
for(int i = 0; i<(arithmeticExpressionStack.getStackSize())/2;i++){
2121
String operator = arithmeticExpressionStack.pop();
2222
String secondString = arithmeticExpressionStack.pop();
23-
int secondNumber = exception.NumericalError(secondString);
23+
int secondNumber = exceptionCheck.NumericalError(secondString);
2424
cumulativeResult = chooseOperatorAndCalculate(cumulativeResult, operator, secondNumber);
2525
}
2626

0 commit comments

Comments
 (0)