Main.java:20: error: incompatible types: inference variable T has incompatible bounds
.map(list -> list.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList()))
^
lower bounds: Comparable<? super T>
lower bounds: String[]
where T is a type-variable:
T extends Comparable<? super T> declared in method <T>reverseOrder()
Main.java:21: error: incompatible types: Object cannot be converted to List<String[]>
.orElse(Collections.<String[]>emptyList());
^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors