Skip to content

Commit e311003

Browse files
committed
made class final
1 parent 2b4b54c commit e311003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.thealgorithms.maths;
22

3-
public class UniformNumbers {
3+
public final class UniformNumbers {
44

55
// Private constructor to prevent instantiation of the utility class
66
private UniformNumbers() {
@@ -9,7 +9,7 @@ private UniformNumbers() {
99

1010
public static int uniformNumbers(int num) {
1111
String numStr = Integer.toString(num);
12-
int uniformCount = (numStr.length() - 1) * 9; // Count for digits less than current length
12+
int uniformCount = (numStr.length() - 1) * 9;
1313
int finalUniform = Integer.parseInt(String.valueOf(numStr.charAt(0)).repeat(numStr.length()));
1414

1515
if (finalUniform <= num) {

0 commit comments

Comments
 (0)