我如何将一个列表的内容追加到另一个列表的末尾?
List.addAll()
listA.addAll(listB)
List finalist = a + b
例子:
List a = [1,4] List b = [2,3] List c = a+b
结果:
c = [1, 4, 2, 3]