Procházet zdrojové kódy
Merge pull request #1038 from bmkiefer/nth-prime-ref-solution
nth-prime: make classes and methods package private in reference solution
Sam Warner
před 8 roky
No account linked to committer's email
|
|
@@ -1,7 +1,7 @@
|
|
1
|
1
|
import java.util.stream.IntStream;
|
|
2
|
2
|
|
|
3
|
|
-public final class PrimeCalculator {
|
|
4
|
|
- public int nth(int nth) {
|
|
|
3
|
+final class PrimeCalculator {
|
|
|
4
|
+ int nth(int nth) {
|
|
5
|
5
|
if (nth < 1) {
|
|
6
|
6
|
throw new IllegalArgumentException();
|
|
7
|
7
|
}
|