@@ -0,0 +1,652 @@
+import java.util.Scanner;%0A%0Apublic class TriangleArea %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        int aX, aY, bX, bY, cX, cY;%0A%0A        Scanner scanIn = new Scanner(System.in);%0A        aX = Integer.parseInt(scanIn.nextLine());%0A        aY = Integer.parseInt(scanIn.nextLine());%0A        bX = Integer.parseInt(scanIn.nextLine());%0A        bY = Integer.parseInt(scanIn.nextLine());%0A        cX = Integer.parseInt(scanIn.nextLine());%0A        cY = Integer.parseInt(scanIn.nextLine());%0A        scanIn.close();%0A%0A        double area = Math.abs(aX * (bY - cY) + bX * (cY - aY) + cX * (aY - bY)) / 2;%0A        System.out.println(Math.round(area));%0A    %7D%0A%7D%0A

Solve homework2-problem2: TriangleArea