Beispiel #1
0
  /**
   * 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;
  }