Storing data in a hashtable
ArrayList<String> details;
Hashtable<String, ArrayList<String>> detailslist;
So this would be John -> Date, Score, Time
so details would be ( Date, Score, Time ), key would be John
Now john could have multiple details.
You cannot store multiple same keys in a hashtable
?
example Hashtable
ht.put(John, details1)
ht.put(John, details2)
ht.put(John, details3)
ht.put(Paul, details1)
ht.put(Paul, details1)
I get a list of names(keys) and would like to be able to pull off multiple enties from the hashtable, but it can't be done
?
So any other objects I should use
?
I have a solution, that changes the hastable to Hashtable<String, ArrayList<ArrayList<String>>>, but it's a good but more overhead in code thats not relevent here
details1.add(date, Score, Time)
details2.add(date, Score, Time)
details3.add(date, Score, Time)
details.add(details1,details2,details3)
ht.put(John,details)
Just seeing if there is a simplier way to do it
?