I need to create a dynamic array in Java, but the type of the values ββis different from String to Int to float. How can I create a dynamic list that I do not need to give in the extended value type?
Keys just have to be incremental (1,2,3,4 or 0,1,2,3,4)
I checked the ArrayList, but it seems that I should give it a fixed type for the values.
thanks!
source share