Java ArrayLists


Firstly, can Java Arraylists be type Integer? If so, how does accessing elements work in a Java arraylist type Integer, especially inbetween accessing the elements with their specific values vs accessing them with their index?

Thanks :grinning::grinning:

That is something you can find out by trying to store Integerโ€™s in an arraylist, isnโ€™t it?

Same as with any other arraylist.