I have a List<String> I need to find whether the particular string exists inside a List or not.
for Eg:
String str = "apple";
List<String> listObject = Lists.newArrayList("apple", "orange", "banana");
I need to find whether str exists in listObject or not using Google Guava.
So I need a true or false result.
How can I achieve this?