Concise java 8 stream solution


#1
public class Solution {
    public String largestNumber(final List<Integer> A) {
        String result = A.stream()
        .map(i -> i.toString())
        .sorted(Solution::reversedComparing)
        .collect(java.util.stream.Collectors.joining(""));
        return result.substring(nonZeroStartIndexIn(result), result.length());
    }
    private static int nonZeroStartIndexIn(String str) {
        int i = 0;
        for(;i < str.length() - 1 && str.charAt(i) == '0'; i++) {}
        return i;
    }

    private static int reversedComparing(String s1, String s2) {
        return s2.concat(s1).compareTo(s1.concat(s2));
    }
}

`