Main.java:15: error: no suitable method found for reverseOrder(List<String>)
Comparator c=Collections.reverseOrder(x);
^
method Collections.<T#1>reverseOrder() is not applicable
(cannot infer type-variable(s) T#1
(actual and formal argument lists differ in length))
method Collections.<T#2>reverseOrder(Comparator<T#2>) is not applicable
(cannot infer type-variable(s) T#2
(argument mismatch; List<String> cannot be converted to Comparator<T#2>))
where T#1,T#2 are type-variables:
T#1 extends Object declared in method <T#1>reverseOrder()
T#2 extends Object declared in method <T#2>reverseOrder(Comparator<T#2>)
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error