@@ -0,0 +1,877 @@
+import java.math.BigDecimal;%0Aimport java.util.*;%0A%0Aclass Solution %7B%0A    public static void main(String %5B%5Dargs)%7B%0A        Scanner sc = new Scanner(System.in);%0A        int n = sc.nextInt();%0A        String%5B%5D s = new String%5Bn + 2%5D;%0A        for (int i = 0; i %3C n; i++) %7B%0A            s%5Bi%5D = sc.next();%0A        %7D%0A        sc.close();%0A%0A        //Write your code here%0A        Arrays.sort(s, Collections.reverseOrder(new Comparator%3CString%3E() %7B%0A            @Override%0A            public int compare(String o1, String o2) %7B%0A                if (o1 != null && o2 != null) %7B%0A                    BigDecimal d1 = new BigDecimal(o1);%0A                    BigDecimal d2 = new BigDecimal(o2);%0A                    return d1.compareTo(d2);%0A                %7D%0A            %7D%0A        %7D));%0A%0A        //Output%0A        for(int i = 0; i %3C n; i++)%0A        %7B%0A            System.out.println(s%5Bi%5D);%0A        %7D%0A    %7D%0A%7D%0A

Solve big decimal