Difference between
This question already has answers here: What is PECS (Producer Extends Consumer Super)? (16 answers) Closed 3 years ago. What is the difference between List<? super T> and List<? extends T> ? I used to use List<? extends T>, but it does not allow me to add elements to it list.add(e), whereas the List<? super … Read more