Skip to content

Commit be93a7d

Browse files
Added private method
1 parent fadf7af commit be93a7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
*/
1717
public class PiApproximation {
1818

19+
private PiApproximation() {
20+
throw new AssertionError("No instances.");
21+
}
22+
1923
/**
2024
* Structure representing a point with coordinates (x, y)
2125
* where 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1.

0 commit comments

Comments
 (0)