When I've needed a way of easily identifying an ArrayList inside an ArrayList, I would just put an identifier in the 0 index, then print out all the zero indexes with a loop. Now I'm wondering if there is a way to make the nested ArrayLists have names.
for example:
ListOfLists.add( new ArrayList<String>() );
ListOfLists.get(ListOfLists.size() -1).add("someIdentifierHumansCanRead");
would there be some way to make ListOfLists.add(new ArrayList<String>())
be
ListOfLists.add(ArrayList someIdentifierHumansCanRead = new ArrayList<String>)
?
Or would this just be completely absurd?