I wrote my custom comparator in non java 8 way as below, but not clear even after reading some blogs, how to do it using `Comparator.comparing` with the `lambda` style syntax.

```
class MyCustomComparator  implements Comparator<Integer> {
    @Override
    public int compare(Integer n1, Integer n2) {
        String ns1 = Integer.toString(n1) + Integer.toString(n2);
        String ns2 = Integer.toString(n2) + Integer.toString(n1);
        if (Integer.parseInt(ns1) > Integer.parseInt(ns2)) {
            return 1;
        } else if (Integer.parseInt(ns1) < Integer.parseInt(ns2))
            return -1;
        return 0;
    }
}

```

Generally `Comparator.comparing` takes the lambda where most examples I say the lamda is not taking argument.