Inflearn Community Q&A
그밖의 좋은 코드 작성을 위한 Tip2 오타 있는것 같습니다.
Resolved
Written on
·
163
1
반환형이 void => int로 변경되어야 할 것 같습니다.
void calculateTotalUsedPoint(){
int totalUsedPoints = 0;
for(UsedPoint point : usedPoints)
totalUsedPoints += point.amount();
return totalUsedPoints;
}refactoring





