import java.util.*; import java.util.stream.Collectors; public class Solution { /** * * @param strs string字符串一维数组 the strings * @return string字符串 */ public String minString (String[] strs) { // write code here return Arrays.stream(strs).sorted((o1, o2) -> (o1 + o2).compareTo(o2 + o1)).collect(Collectors.joining()); } }