@@ -0,0 +1,890 @@
+package dkalymbaev;%0A%0Aimport static java.lang.Math.pow;%0Aimport static java.lang.Math.sqrt;%0A%0Apublic class Triangle %7B%0A%09/**%0A%09* This class defines points a b and c as peacks of triangle.%0A%09*/%0A%09public Point a;%0A%09public Point b;%0A%09public Point c;%0A%09%7D%09%0A%09/**%0A%09* Creating of a new objects.%0A%09* @param ab is the length of the first side.%0A%09* @param bc is the length of the second side.%0A%09* @param ac is the length of the third side.%0A%09*/%0A%09%0A%09public Triangle(Point a, Point b, Point c) %7B%0A%09%09this.a = a;%0A%09%09this.b = b;%0A%09%09this.c = c;%0A%09%09double ab = a.distanceTo(b);%0A%09%09double bc = b.distanceTo(c);%0A%09%09double ac = a.distanceTo(c);%0A%09%09double halfperim = ((ab + bc + ac) / 2);%0A%09%09float area = Math.sqrt(halfperim * (halfperim - ab) * (halfperim - bc) * (halfperim - ac));%0A%09%09if %7B%0A%09%09%09double ab %3E 0 && double bc %3E 0 && double ac %3E 0%0A%09%09%09return area;%0A%09%09%7D else if %7B ab == 0 %7C%7C bc == 0 %7C%7C ac == 0%0A%09%09    return false;%09%09%09%0A%09%09%7D%0A%09%7D%0A%7D%0A%0A

Add new Triangle.java file