We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecccc5b commit 13e36bcCopy full SHA for 13e36bc
1 file changed
exercises/series/src/example/java/Series.java
@@ -10,11 +10,10 @@ public class Series {
10
private List<Integer> digits;
11
12
public Series(String string) {
13
- this.digits = Arrays
14
- .asList(string.split(("")))
15
- .stream()
16
- .map(digit -> Integer.parseInt(digit))
17
- .collect(Collectors.toList());
+ this.digits =
+ Arrays.stream(string.split(("")))
+ .map(Integer::parseInt)
+ .collect(Collectors.toList());
18
this.digitsSize = this.digits.size();
19
}
20
0 commit comments