diff options
| author | mo khan <mo@mokhan.ca> | 2019-08-11 17:38:24 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2019-08-11 17:38:24 -0600 |
| commit | a7abfd9f11d2d750cb2b45bfc9de8858a29f05f2 (patch) | |
| tree | 999ec6556bdb3b88a1f7bb9cd7c2f803bbbeac40 /src/Q8/BadmintonScoringWithStroke.java | |
| parent | a04f5ec262de028c843e38bf5864cd84953258b1 (diff) | |
add documentation and complete program profile
Diffstat (limited to 'src/Q8/BadmintonScoringWithStroke.java')
| -rw-r--r-- | src/Q8/BadmintonScoringWithStroke.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Q8/BadmintonScoringWithStroke.java b/src/Q8/BadmintonScoringWithStroke.java index 183ff05..4984402 100644 --- a/src/Q8/BadmintonScoringWithStroke.java +++ b/src/Q8/BadmintonScoringWithStroke.java @@ -16,8 +16,7 @@ public class BadmintonScoringWithStroke extends BadmintonScoring { private static final int PLAYER2 = 1; /** - * Creates an instance of this class with an ArrayList of points for each - * round. + * Creates an instance of this class with an ArrayList of points for each round. * * @param points a list of points for each round */ @@ -27,16 +26,12 @@ public class BadmintonScoringWithStroke extends BadmintonScoring { this.scores = to2DArray(points); } - /** - * @return the name of player 1's preferred stroke. - */ + /** @return the name of player 1's preferred stroke. */ public String getMostUsedStrokePlayer1() { return maxStrokeFor(Point.PLAYER1); } - /** - * @return the name of player 2's preferred stroke. - */ + /** @return the name of player 2's preferred stroke. */ public String getMostUsedStrokePlayer2() { return maxStrokeFor(Point.PLAYER2); } |
