I want to create an arrayList as following.
id->1512 associated with the values -> 12,45,78
id->1578 associated with the values -> 456,78,87,96
What I have to do? Should I create a 2-d arrayList or can I do that with single dimension arraylist?
MultiMap<Integer, Integer>(e.g. from Guava), or aMap<Integer, Set<Integer>>