Skip to content
Snippets Groups Projects
Commit b29c1f9e authored by Martin Schmollinger's avatar Martin Schmollinger
Browse files

Reduced visibility of methods in PrimeGame to package private

parent c0c77499
No related branches found
No related tags found
Loading
......@@ -27,7 +27,7 @@ public class PrimeGame {
this.currentLevel = currentLevel;
}
public void nextCurrentLevel() {
void nextCurrentLevel() {
currentLevel = currentLevel.getNextLevel();
}
......@@ -49,7 +49,7 @@ public class PrimeGame {
* }
*/
public static boolean isPrime(int number) {
static boolean isPrime(int number) {
for (int i = 2; i < number; i++) {
if (number % i == 0) {
return false;
......@@ -58,7 +58,7 @@ public class PrimeGame {
return true;
}
public void nextCurrentNumber() {
void nextCurrentNumber() {
Random rand = new Random();
switch (currentLevel) {
case SIMPLE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment