Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1c6026e

Browse files
authored
fix: correct error message in surfaceAreaCylinder method (#7106)
1 parentf693c44 commit1c6026e

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/thealgorithms/maths

1 file changed

+1
-1
lines changed

‎src/main/java/com/thealgorithms/maths/Area.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static double surfaceAreaCylinder(final double radius, final double heigh
9696
thrownewIllegalArgumentException(POSITIVE_RADIUS);
9797
}
9898
if (height <=0) {
99-
thrownewIllegalArgumentException(POSITIVE_RADIUS);
99+
thrownewIllegalArgumentException(POSITIVE_HEIGHT);
100100
}
101101
return2 * (Math.PI *radius *radius +Math.PI *radius *height);
102102
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp