Hi! Please explain me why I can't invoke addandDisp with parameters ls1 and object of type Object? What second parameter is allowed with first parameter will be ls1?
mmm, i am not sure what you wish to intend by List<? super Object> This means either a superclass of Object(No class qualifies this rule) or the Object itself. Since, there is no superclass of Object, its as good as saying List<Object> If you do the above, everything should work fine.