4 Replies Latest reply: Dec 10, 2012 8:39 AM by 969557 RSS

    How to handle such code: ? super ? extends Type

    966867
      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