I want to combine two ArrayList into a single one.
My first arraylist looks like this:
{a,s,d,f,g,h,......}
My second arraylist looks like this:
{z,x,c,v,b,.....}
Then I want to combine both to be as
{a,s,d,f,g,h,.....,z,x,c,v,b.....}
First List is
ArrayList<String> firstname1 = new ArrayList<String>();
Where as the second list is as
ArrayList<String> first = new ArrayList<String>();
Now I want to combine all this together and I want it to be listed out in list view.
How to do this?
Combine two ArrayList into a single one
Please refer this article for sample code to concat two lists.
How to show these items in list view :
your layout should be ( as I used main.xml)
and now Activity as
CustomListView.javaHappy coding.