Periksa apakah daftar berisi string java

String search = "A";
for(String str: myList) {
    if(str.trim().contains(search))
       return true;
}
return false;
Angry Albatross (Old)