For IntelliJ IDEA and

Android Studio

public void updateArea() { if (prev == null || next == null) { area = MAX_AREA; return; } area = Math.abs(Triangle.area(prev.pt, pt, next.pt)); }

/** * Computes the 2D area of this triangle. The area value is always * non-negative. * * @return the area of this triangle * * @see #signedArea() */ public double area() { return area(this.p0, this.p1, this.p2); }

Triangle t = Circle c = Square s = double area = t.area() + c.area() + s.area();

/** * Computes the 2D area of this triangle. The area value is always * non-negative. * * @return the area of this triangle * * @see #signedArea() */ public double area() { return area(this.p0, this.p1, this.p2); }