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:
@@ -14,7 +14,9 @@ package com.thealgorithms.maths;
|
||||
* be changed according to the user preference.
|
||||
*/
|
||||
|
||||
public class SquareRootWithNewtonRaphsonMethod {
|
||||
public final class SquareRootWithNewtonRaphsonMethod {
|
||||
private SquareRootWithNewtonRaphsonMethod() {
|
||||
}
|
||||
|
||||
public static double squareRoot(int n) {
|
||||
double x = n; // initially taking a guess that x = n.
|
||||
|
||||
Reference in New Issue
Block a user