<awangdev>Largest Number_1.java
public String largestNumber(int[] num) {
        if (num == null || num.length == 0) {
            return "";
        }
        String[] strs = new String[num.length];
        for (int i = 0; i < num.length; i++) {
            strs[i] = num[i] + "";
        }

        Arrays.sort(strs, new Comparator<String>() {
            public int compare(String s1, String s2) {
                return (s2 + s1).compareTo(s1 + s2);
            }
        });

        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < num.length; i++) {
            sb.append(strs[i]);
        }
        String rst = sb.toString();
        
        if (rst.charAt(0) == '0') {
            return "0";
        }
        return rst;
    }
public String var_0 ( int [ ] var_1 ) {
  if ( var_1 == null || var_1 . length == 0 ) {
    return "" ;
  }
  String [ ] var_7 = new String [ var_1 . length ] ;
  for ( int var_8 = 0 ;
  var_8 < var_1 . length ;
  var_8 ++ ) {
    var_7 [ var_8 ] = var_1 [ var_8 ] + "" ;
  }
  Arrays . sort ( var_7 , new Comparator < String > ( ) {
    public int compare ( String var_13 , String var_14 ) {
      return ( var_14 + var_13 ) . compareTo ( var_13 + var_14 ) ;
    }
  }
  ) ;
  StringBuffer var_17 = new StringBuffer ( ) ;
  for ( int var_8 = 0 ;
  var_8 < var_1 . length ;
  var_8 ++ ) {
    var_17 . append ( var_7 [ var_8 ] ) ;
  }
  String var_20 = var_17 . toString ( ) ;
  if ( var_20 . charAt ( 0 ) == '0' ) {
    return "0" ;
  }
  return var_20 ;
}
