Answers for "added two list andoriddd"

2

added two list andorid

var first: ArrayList<Dns> = arrayListOf()
 var second: ArrayList<Dns> = arrayListOf()
        first.add("1")
        first.add("2")
        first.add("3")

        second.add("4")
        second.add("5")
        second.add("6")


        first.addAll(second)
        first.forEach(){
            //You can use your data in one arraylist
        }
Posted by: Guest on July-14-2021

Browse Popular Code Answers by Language