We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f2a87e2 + 1c6026e commit 00c3800Copy full SHA for 00c3800
1 file changed
src/main/java/com/thealgorithms/maths/Area.java
@@ -96,7 +96,7 @@ public static double surfaceAreaCylinder(final double radius, final double heigh
96
throw new IllegalArgumentException(POSITIVE_RADIUS);
97
}
98
if (height <= 0) {
99
- throw new IllegalArgumentException(POSITIVE_RADIUS);
+ throw new IllegalArgumentException(POSITIVE_HEIGHT);
100
101
return 2 * (Math.PI * radius * radius + Math.PI * radius * height);
102
0 commit comments