Skip to main content
edited tags
Link
MariuszS
  • 31.8k
  • 13
  • 120
  • 160

I have a ArrayList as below.

ArrayList<ArrayList<String>> a = new ArrayList<ArrayList<String>>(); 

Where arraylist 'a'ArrayList 'a' contains two arraylistArrayList of string as below.

[a,b,c,d] & [1,2,3,4]

[a,b,c,d] & [1,2,3,4] 

How to merge these two list into a single list as below.

[a,b,c,d,1,2,3,4]

[a,b,c,d,1,2,3,4] 

Thanks In Advance.

I have a ArrayList as below.

ArrayList<ArrayList<String>> a = new ArrayList<ArrayList<String>>(); 

Where arraylist 'a' contains two arraylist of string as below.

[a,b,c,d] & [1,2,3,4]

How to merge these two list into a single list as below.

[a,b,c,d,1,2,3,4]

Thanks In Advance.

I have a ArrayList as below.

ArrayList<ArrayList<String>> a = new ArrayList<ArrayList<String>>(); 

Where ArrayList 'a' contains two ArrayList of string as below.

[a,b,c,d] & [1,2,3,4] 

How to merge these two list into a single list as below.

[a,b,c,d,1,2,3,4] 

Thanks In Advance.

Source Link
Suniel
  • 1.5k
  • 8
  • 27
  • 40

Merge two list into a single list

I have a ArrayList as below.

ArrayList<ArrayList<String>> a = new ArrayList<ArrayList<String>>(); 

Where arraylist 'a' contains two arraylist of string as below.

[a,b,c,d] & [1,2,3,4]

How to merge these two list into a single list as below.

[a,b,c,d,1,2,3,4]

Thanks In Advance.