I'm trying to compare two String list with each other and check if at least the have one exact same string or not ..
For example:
List<String> list1 = ['1','2','3','4'];
List<String> list2 = ['1','5','6','7'];
In this case I will do action cause both have same string which is 1
, and it could be more than one exact same string and the action will be the same.
But if they don't have any similar strings then I will do another action.
How can I do something like this?