How can you assign an object in a list, its own value?
Short and to the point.
Sorry, I will expand. I must’ve been far too vague.
Say I create a list named “age”. I want to assign one of the objects within the list, “Joe”, his age: “14”.
So “Joe” -> “14”, “Sam” -> “15”, etc.?
It’s a Map you’re after, not List.