We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0291fbd commit c720b02Copy full SHA for c720b02
src/main/java/com/thealgorithms/maths/Area.java
@@ -122,7 +122,7 @@ public static double surfaceAreaSquare(final double sideLength) {
122
* @return area of given triangle
123
*/
124
public static double surfaceAreaTriangle(final double baseLength, final double height) {
125
- if (base <= 0) {
+ if (baseLength<= 0) {
126
throw new IllegalArgumentException(POSITIVE_BASE);
127
}
128
if (height <= 0) {
0 commit comments