public String solution(int[] numbers) {
String result = Arrays.stream(numbers)
.mapToObj(String::valueOf)
.sorted((s1, s2) -> (s2 + s1).compareTo(s1 + s2))
.collect(Collectors.joining());
return result.startsWith("0") ? "0" : result;
}
출처:https://school.programmers.co.kr/learn/courses/30/lessons/42746