@@ -0,0 +1,1076 @@
+package org.luapp.practise.leetcode;%0A%0Aimport java.util.*;%0A%0A/**%0A * Created by lumeng on 2015/3/12.%0A */%0Apublic class LargestNumber %7B%0A    public static String largestNumber(int%5B%5D num) %7B%0A%0A        for (int i = 0; i %3C num.length-1; i++) %7B%0A            for(int j = i+1;j %3C num.length;j++) %7B%0A                String s1 = num%5Bi%5D + %22%22 + num%5Bj%5D;%0A                String s2 = num%5Bj%5D + %22%22 + num%5Bi%5D;%0A%0A                int ret = s1.compareTo(s2);%0A                if (ret %3C 0) %7B%0A                    int temp = num%5Bi%5D;%0A                    num%5Bi%5D = num%5Bj%5D;%0A                    num%5Bj%5D = temp;%0A                %7D%0A            %7D%0A        %7D%0A%0A        if (num%5B0%5D==0) %7B%0A            return %220%22;%0A        %7D%0A%0A        StringBuilder sb = new StringBuilder();%0A        for (int i = 0; i %3C num.length; i++) %7B%0A            sb.append(num%5Bi%5D);%0A        %7D%0A%0A        return sb.toString();%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        int%5B%5D num = new int%5B%5D%7B3, 30, 34, 5, 9%7D;%0A        System.out.println(largestNumber(num));%0A        num = new int%5B%5D%7B0,0%7D;;%0A        System.out.println(largestNumber(num));%0A    %7D%0A%0A%7D%0A

add one leetcode test