2d Arraylist java example

In this post, we will see how to create 2d Arraylist in java.

Best way to create 2d Arraylist is to create list of list in java.

Let’s create a program to implement 2d Arraylist java.

Output:

2nd element in list3 : List3_Str2
3nd element in list1 : List1_Str3
1st element in list2 : List2_Str1

That’s all about 2d Arraylist java.

Was this post helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *