-
카테고리
-
세부 분야
기타 (개발 · 프로그래밍)
-
해결 여부
해결됨
그밖의 좋은 코드 작성을 위한 Tip2 오타 있는것 같습니다.
20.07.14 21:57 작성 조회수 72
1
반환형이 void => int로 변경되어야 할 것 같습니다.
void calculateTotalUsedPoint(){
int totalUsedPoints = 0;
for(UsedPoint point : usedPoints)
totalUsedPoints += point.amount();
return totalUsedPoints;
}
답변을 작성해보세요.
1
답변 1