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:
@@ -5,7 +5,9 @@ package com.thealgorithms.maths;
|
||||
* @author Bama Charan Chhandogi (https://github.com/BamaCharanChhandogi)
|
||||
*/
|
||||
|
||||
public class PowerUsingRecursion {
|
||||
public final class PowerUsingRecursion {
|
||||
private PowerUsingRecursion() {
|
||||
}
|
||||
|
||||
public static double power(double base, int exponent) {
|
||||
// Base case: anything raised to the power of 0 is 1
|
||||
|
||||
Reference in New Issue
Block a user