자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
/** * Return the score. * * @return the score */ public int getScore() { int scores = 0; Round bowlingRoundCurrent = bowlingFirstRound; scores += bowlingRoundCurrent.getScoreRound(); while (bowlingRoundCurrent.getNextRound() != null) { bowlingRoundCurrent = bowlingRoundCurrent.getNextRound(); scores += bowlingRoundCurrent.getScoreRound(); } return scores; }