@@ -0,0 +1,1031 @@
+package leetcode.largest_number;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Comparator;%0A%0Apublic class Solution %7B%0A    public String largestNumber(int%5B%5D num) %7B%0A        if(num == null %7C%7C num.length == 0) return %22%22;%0A        int length = num.length;%0A        String%5B%5D num_str = new String%5Blength%5D;%0A        for(int i = 0; i %3C length; i++)%7B%0A            num_str%5Bi%5D = String.valueOf(num%5Bi%5D);%0A        %7D%0A        Arrays.sort(num_str, new Comparator%3CString%3E() %7B%0A%0A            @Override%0A            public int compare(String o1, String o2) %7B%0A                return -(o1 + o2).compareTo(o2 + o1);%0A            %7D%0A        %7D);%0A        StringBuilder ret = new StringBuilder();%0A        for(String str : num_str)%7B%0A            ret.append(str);%0A        %7D%0A        String r = ret.toString().replaceAll(%22%5E0+%22, %22%22);%0A        if(r.length() == 0)%7B%0A            return %220%22;%0A        %7Delse%7B%0A            return r;%0A        %7D%0A    %7D%0A    %0A    public static void main(String%5B%5D args)%7B%0A        System.err.println(new Solution().largestNumber(new int%5B%5D%7B 0, 0, 0, 1%7D));%0A    %7D%0A%7D%0A

Add java solution for 179. Largest Number