You can use hashmap
Map<String,ArrayList<Object>> map = new HashMap<String,ArrayList<Object>>();
Instead of the object, specify the type that you need.
HashMap provides fast random access. Also have:
TreeMap - data sorted by key. LinkedHashMap - data stored in the order they are entered into the container.
source share