mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
style: enable HideUtilityClassConstructor in checkstyle (#5147)
This commit is contained in:
@@ -40,7 +40,9 @@
|
||||
*/
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
class DigitalRoot {
|
||||
final class DigitalRoot {
|
||||
private DigitalRoot() {
|
||||
}
|
||||
|
||||
public static int digitalRoot(int n) {
|
||||
if (single(n) <= 9) { // If n is already single digit than simply call single method and
|
||||
|
||||
Reference in New Issue
Block a user