By default list.contains(“String”) check for complete match in each line, so searching for list.contain(“ing”) would return false.
This is what I did for solution:
Convert list collection to String and then search in this complete Collection String contains our substring “ing”
Example: sample code below list elements in list1 that are not present in list2. Also while comparing it compares only for first 7 characters
String x = list2.toString();
String b = a.substring(0,7);