Skip to content

Commit 5c36007

Browse files
committed
Removed main and printVampireNumbers methods per siriak request.
1 parent 357da09 commit 5c36007

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/main/java/com/thealgorithms/maths/VampireNumber.java

-17
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,4 @@ static String splitIntoSortedDigits(int... nums) {
4545
digits.stream().sorted().forEach(res::append);
4646
return res.toString();
4747
}
48-
49-
static void printVampireNumbers(int startValue, int stopValue, boolean ignorePseudoVampireNumbers) {
50-
int resultCounter = 0;
51-
52-
for (int i = startValue; i <= stopValue; i++) {
53-
for (int j = i; j <= stopValue; j++) {
54-
if (isVampireNumber(i, j, ignorePseudoVampireNumbers)) {
55-
resultCounter++;
56-
System.out.printf("%d: %d = %d * %d%n", resultCounter, i * j, i, j);
57-
}
58-
}
59-
}
60-
}
61-
62-
public static void main(String[] args) {
63-
printVampireNumbers(10, 1000, true);
64-
}
6548
}

0 commit comments

Comments
 (0)