I have two lists with different objects in them.
List list1; List list2;
I want to check if element from list
You can use Apache Commons CollectionUtils:
if(CollectionUtils.containsAny(list1,list2)) { // do whatever you want } else { // do other thing }
This assumes that you have properly overloaded the equals functionality for your custom objects.