Why am i getting error here, even though i’m entering Integer object here? can someone explain?
it should be able to iterate over the list.
And since Integer belongs to wrapper class and wrapper class and wrapper extends to Object
can’t we directly add integers into a list without converting them into wrapper object
New contributor
bender_hover is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.