@@ -0,0 +1,1009 @@
+import java.text.MessageFormat;%0Aimport java.util.Scanner;%0A%0Apublic class CenterPoint %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        double x1 = Double.parseDouble(scanner.nextLine());%0A        double y1 = Double.parseDouble(scanner.nextLine());%0A        double x2 = Double.parseDouble(scanner.nextLine());%0A        double y2 = Double.parseDouble(scanner.nextLine());%0A%0A        double distanceToCenterA = getDistanceBetweenTwoPoints(x1, y1, 0, 0);%0A        double distanceToCenterB = getDistanceBetweenTwoPoints(x2, y2, 0, 0);%0A%0A        if (distanceToCenterA %3E distanceToCenterB) %7B%0A            System.out.println(MessageFormat.format(%22(%7B0%7D, %7B1%7D)%22, x2, y2));%0A        %7D%0A        else %7B%0A            System.out.println(MessageFormat.format(%22(%7B0%7D, %7B1%7D)%22, x1, y1));%0A        %7D%0A    %7D%0A%0A    private static double getDistanceBetweenTwoPoints(double x1, double y1, double x2, double y2) %7B%0A        return Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2));%0A    %7D%0A%7D%0A

Create 08.CenterPoint.java