I am trying to pass an a multidimensional arraylist (ex: Arraylist>) from one java activity to another. I've looked at many posts and have determined using a bundle is the best way to go (i am also already using a bundle elsewhere so i know how they generally work), however I haven't seen an example of a 2d arraylist.
I've tried something along the line of the following, but didn't get far after realizing putStringArrayListExtra doesnt accept 2d arraylists:
private static ArrayList<ArrayList<String>> bigArrayList = new ArrayList<>();
static ArrayList<String> smallArrayList= new ArrayList<>();
Bundle b = new Bundle();
b.putStringArrayListExtra("2dArrayList", bigArrayList );
Intent i=new Intent(context, Class);
i.putExtras(b);
ArrayList<String> urls = getIntent().getStringArrayListExtra("2dArrayList");
Just looking for some help or advice on how to pass 2d arraylists between activities.