Skip to content

Commit cf198f4

Browse files
committed
Changes access modifier to packe private for Series example class
1 parent 13e36bc commit cf198f4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

exercises/series/src/example/java/Series.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
import java.util.List;
55
import java.util.stream.Collectors;
66

7-
public class Series {
7+
class Series {
88

99
private final int digitsSize;
1010
private List<Integer> digits;
1111

12-
public Series(String string) {
12+
Series(String string) {
1313
this.digits =
1414
Arrays.stream(string.split(("")))
1515
.map(Integer::parseInt)
1616
.collect(Collectors.toList());
1717
this.digitsSize = this.digits.size();
1818
}
1919

20-
public List<List<Integer>> slices(int num) {
20+
List<List<Integer>> slices(int num) {
2121
if (num > this.digitsSize) {
2222
throw new IllegalArgumentException("Slice size is too big.");
2323
}
@@ -31,7 +31,7 @@ public List<List<Integer>> slices(int num) {
3131
return result;
3232
}
3333

34-
public List<Integer> getDigits() {
34+
List<Integer> getDigits() {
3535
return digits;
3636
}
3737

0 commit comments

Comments
 (0)