• + 0 comments

    Or you can just create and ArrayList of ArrayLists.

    ArrayList> arr=new ArrayList<>();

    each element i in the list arr will be another ArrayList.