This discussion is archived
4 Replies Latest reply: Dec 10, 2012 6:39 AM by 969557 RSS

How to handle such code: ? super ? extends Type

966867 Newbie
Currently Being Moderated
Hi I faced of a problem which I don't handle:
SortedSet<? extends Integer> set = new TreeSet<>();
...
Comparator<? super ? extends Integer> c = set.comparator();//how to handle such code?
...
Best Regards

Andrej

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points