diff --git a/src/main/java/com/thealgorithms/maths/Area.java b/src/main/java/com/thealgorithms/maths/Area.java index 84fc67159379..3f578cfc9e89 100644 --- a/src/main/java/com/thealgorithms/maths/Area.java +++ b/src/main/java/com/thealgorithms/maths/Area.java @@ -39,7 +39,7 @@ public static double surfaceAreaCube(final double sideLength) { * Calculate the surface area of a cuboid. * * @param length length of the cuboid - * @param width width of the cuboid + * @param width width of the cuboid * @param height height of the cuboid * @return surface area of given cuboid */ @@ -72,7 +72,7 @@ public static double surfaceAreaSphere(final double radius) { /** * Calculate the surface area of a pyramid with a square base. * - * @param sideLength side length of the square base + * @param sideLength side length of the square base * @param slantHeight slant height of the pyramid * @return surface area of the given pyramid */ @@ -88,6 +88,13 @@ public static double surfaceAreaPyramid(final double sideLength, final double sl return baseArea + lateralSurfaceArea; } + public static double surfaceAreaOfWhatttt(final double radius) { + if (radius <= 0) { + throw new IllegalArgumentException(""); + } + return radius * 114.514; + } + /** * Calculate the area of a rectangle. *