Another thing you could use is a map! Look into those!
You could have the object as the first half (key) and the int as the second half (value) then any time you need you call the key and it returns the value!
Another thing you could use is a map! Look into those!
You could have the object as the first half (key) and the int as the second half (value) then any time you need you call the key and it returns the value!