Hey alright heres what im trying to accomplish.
I want to be able to add strings to an arraylist and then give them a numerical value.
Like:
int coolness;
static ArrayList<String> people = new ArrayList<String>();
people.add(sam);
and then something like
people.sam.coolness = 999999;
How is this accomplished? thanks!
I want to be able to add strings to an arraylist and then give them a numerical value.
Like:
int coolness;
static ArrayList<String> people = new ArrayList<String>();
people.add(sam);
and then something like
people.sam.coolness = 999999;
How is this accomplished? thanks!