Skip to content

Commit e542a06

Browse files
committed
in map-reduce approach: convert to list for better readability
1 parent 6fb694a commit e542a06

File tree

1 file changed

+5
-3
lines changed
  • exercises/practice/scrabble-score/.approaches/map-reduce

1 file changed

+5
-3
lines changed

exercises/practice/scrabble-score/.approaches/map-reduce/content.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ A [`private`][private] [`final`][final] variable is defined to be returned by th
4949
It is `private` because it does not need to be directly accessed from outside the class, and it is `final` because its value does not need to be changed once it is set.
5050

5151
Several `private` `final` [`static`][static] variables are then defined:
52-
a [`HashMap`][hashmap] to hold the lookups of the scores for the letters;
53-
a `String` array of the letters grouped by their common score;
54-
and an `int` array of the scores for the letters.
52+
53+
- a [`HashMap`][hashmap] to hold the lookups of the scores for the letters
54+
- a `String` array of the letters grouped by their common score
55+
- an `int` array of the scores for the letters
56+
5557
They are `static` because they don't need to differ between object instantiations, so they can belong to the class itself.
5658

5759
In a [static block][static-block], the [`IntStream.range()`][range] method is called to iterate an index from `0` up to but including the length of the array of letters.

0 commit comments

Comments
 (0)