String[] str = new String[nums.length];
for(int i=0;i<nums.length;i++){
str[i] = String.valueOf(nums[i]);
}
Arrays.sort(str,(s1,s2)->(s1+s2).compareTo(s2+s1));
StringBuilder res = new StringBuilder();
for(String s:str){
res.append(s);
}
return res.toString();
转载请注明原文地址:https://blackberry.8miu.com/read-35927.html