Hi I have this (what i assume to be) really trivial code:
List<Integer> f = new LinkedList<Integer>();
Collections.sort(f, (Integer f1, Integer f2) -> {
Integer.compare(f1,f2);
});
However, I get the following compile-error:
Cannot convert from
Comparator<Integer>
toComparator<? super T>
This isn't very helpful - what is going wrong?