I want to make arrayList object in java that work as two dimentional array. My question is how can we access value from specific dimention from arrayList.
in two diment
You mean something like a List
in a List
??
May be something like...
List> twoDList = new ArrayList<>();
i want to make a List, in which each List key contains another List inside it
It should more like you want some kind of Map
, which is basically a key/value pair.
Map> mapValues = new HashMap<>(25);
List listOfValues = ...;
//...
mapValues.put("A unique key for this list", listOfValues);
//...
List thatListOfValues = mapValues.get("A unique key for this list");