From a7abfd9f11d2d750cb2b45bfc9de8858a29f05f2 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sun, 11 Aug 2019 17:38:24 -0600 Subject: add documentation and complete program profile --- src/Q8/BadmintonScoring.java | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'src/Q8/BadmintonScoring.java') diff --git a/src/Q8/BadmintonScoring.java b/src/Q8/BadmintonScoring.java index d3c8b29..47dce82 100644 --- a/src/Q8/BadmintonScoring.java +++ b/src/Q8/BadmintonScoring.java @@ -16,8 +16,7 @@ public class BadmintonScoring { private static final int PLAYER2 = 1; /** - * Creates an instance of the BadmintonScoring object with a 2D array of - * scores. + * Creates an instance of the BadmintonScoring object with a 2D array of scores. * * @param scores a 2D array of scores for each player. */ @@ -25,30 +24,22 @@ public class BadmintonScoring { this.scores = scores; } - /** - * @return the longest point streak for player 1. - */ + /** @return the longest point streak for player 1. */ public int getContinuousPointsPlayer1() { return this.longestStreakFor(PLAYER1); } - /** - * @return the longest point streak for player 2. - */ + /** @return the longest point streak for player 2. */ public int getContinuousPointsPlayer2() { return this.longestStreakFor(PLAYER2); } - /** - * @return the final score for player 1. - */ + /** @return the final score for player 1. */ public int getPlayer1Points() { return this.finalScoreFor(PLAYER1); } - /** - * @return the final score for player 2. - */ + /** @return the final score for player 2. */ public int getPlayer2Points() { return this.finalScoreFor(PLAYER2); } -- cgit v1.2.3