I have an ArrayList of ArrayLists where I need to find a simple way of accessing the elements. To make it easier to understand, I have drawn my goal of what I want to achieve:

As seen on the image above the main ArrayList consists of m ArrayList, where I wish to get an element by using a get method which goes from 0 to N elements, where N is the total elements of ArrayList1 and ArrayList2. More ArrayLists may occur.
I can, of course, iterate through the elements by using two for-loops, that is not what I'm searching for in this case.
4, pass3,5.3being the index of the arraylist, and5being the index inside that arraylist.