Simple way to compare 2 ArrayLists

后端 未结 10 1849
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 00:50

I have 2 arraylists of string object.

List sourceList = new ArrayList();
List destinationList = new ArrayList

        
10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 01:22

    As far as I understand it correctly, I think it's easiest to work with 4 lists: - Your sourceList - Your destinationList - A removedItemsList - A newlyAddedItemsList

提交回复
热议问题