I have some Java code which contains some arrays. Say one of them is b. I have a string a whose value points to the names of those arrays at different times. So if a currently contains b, I want to access the 3rd element of b through a. Something which I could have done in Javascript with window[a][2]. is it possible in Java?
I have some Java code which contains some arrays. Say one of them is
Share
Use collections. Looks like you’re looking for
HashMapSomething like that: