I see. That solves the problem. Thank you for your help!
Actually before I had
? , I was trying with
? extends E and
? super E .
I had read the documents but didn't quite understand what they are and when to use them.
Can someone be kind and explains them to me in plain English?