Rename surfaceAreaTriangle for clarity (#4220)

This commit is contained in:
THIRUMURUGAN
2023-06-23 22:09:10 +05:30
committed by GitHub
parent 63739f4933
commit 05ca93eace
2 changed files with 5 additions and 5 deletions

View File

@ -100,7 +100,7 @@ public class Area {
* @param height height of triangle
* @return area of given triangle
*/
public static double surfaceAreaTriangleRectangle(final double base, final double height) {
public static double surfaceAreaTriangle(final double base, final double height) {
if (base <= 0) {
throw new IllegalArgumentException(POSITIVE_BASE);
}