I want to combine a static array (such as int[]
) with a dynamic array such as ArrayList<String>
For example, I know the count of houses: 10 (fixed), but I don't know the count of humans who live in a house. This count will also change dynamically, like a List
.
Is there any option to create a datatype which can fulfill both criteria?