this will be fine, its because the most super is an object so you must use anobject inthe for.
As Integer IS-A Object and our list can accept Object(super class of number)so this value is stored in List as Object.
Please correct If I am wrong.
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton