I am wondering if arrays in Java can do something like this:
int[] a = new int[10]; a["index0"] = 100; a["index1"] = 100;
I know that I saw similar functions in other languages, but I'm not very familiar with any specifics ... There are simply ways to associate values ββwith string constants, and not with numeric numeric indices. Is there any way to achieve such a thing in Java?
java arrays
Fugogugo
source share